RenderTexture(int width, int height, int fillColor)

Source

RenderTexture(int width, int height, int fillColor) {

  if (width <= 0) throw new ArgumentError("width");
  if (height <= 0) throw new ArgumentError("height");

  _width = ensureInt(width);
  _height = ensureInt(height);
  _source = _canvas = new CanvasElement(width: _width, height: _height);

  if (fillColor != 0) {
    var context = _canvas.context2D;
    context.fillStyle = color2rgba(fillColor);
    context.fillRect(0, 0, _width, _height);
  }
}