Texture constructor Null safety

const Texture(
  1. {Key? key,
  2. required int textureId,
  3. bool freeze = false,
  4. FilterQuality filterQuality = FilterQuality.low}

Creates a widget backed by the texture identified by textureId, and use filterQuality to set texture's FilterQuality.


const Texture({
  Key? key,
  required this.textureId,
  this.freeze = false,
  this.filterQuality = FilterQuality.low,
}) : assert(textureId != null),
     super(key: key);