RenderImage constructor
RenderImage({
- required TerminalImage image,
- required ImageFit fit,
- ImageProtocol protocol = ImageProtocol.auto,
- int? width,
- int? height,
Creates an image render box.
Implementation
RenderImage({
required TerminalImage image,
required ImageFit fit,
ImageProtocol protocol = ImageProtocol.auto,
int? width,
int? height,
}) : _image = image,
_fit = fit,
_protocol = protocol,
_width = _validateExtent(width, 'width'),
_height = _validateExtent(height, 'height');