RenderTexture constructor
RenderTexture({
- required int width,
- required int height,
- RenderTextureUpdate update = RenderTextureUpdate.everyFrame,
- RenderTextureSampling sampling = const RenderTextureSampling(),
Creates a render target of width x height physical pixels.
Implementation
RenderTexture({
required int width,
required int height,
this.update = RenderTextureUpdate.everyFrame,
this.sampling = const RenderTextureSampling(),
}) : assert(width > 0 && height > 0, 'RenderTexture size must be positive'),
_size = ui.Size(width.toDouble(), height.toDouble());