TextureBox constructor Null safety
- {required int textureId,
- bool freeze = false,
- FilterQuality filterQuality = FilterQuality.low}
Creates a box backed by the texture identified by textureId
, and use
filterQuality
to set texture's FilterQuality.
Implementation
TextureBox({
required int textureId,
bool freeze = false,
FilterQuality filterQuality = FilterQuality.low,
}) : assert(textureId != null),
_textureId = textureId,
_freeze = freeze,
_filterQuality = filterQuality;