RenderImage constructor

RenderImage({
  1. required TerminalImage image,
  2. required ImageFit fit,
  3. ImageProtocol protocol = ImageProtocol.auto,
  4. int? width,
  5. 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');