TextureLayer constructor

TextureLayer(
  1. {required Rect rect,
  2. required int textureId,
  3. bool freeze = false,
  4. FilterQuality filterQuality = ui.FilterQuality.low}
)

Creates a texture layer bounded by rect and with backend texture identified by textureId, if freeze is true new texture frames will not be populated to the texture, and use filterQuality to set layer's FilterQuality.

Implementation

TextureLayer({
  required this.rect,
  required this.textureId,
  this.freeze = false,
  this.filterQuality = ui.FilterQuality.low,
});