asWidget method

Image asWidget({
  1. double scale = 1.0,
  2. int? cacheWidth,
  3. int? cacheHeight,
})

Returns the Image as an Image See Image.memory

Implementation

Image asWidget({
  double scale = 1.0,
  int? cacheWidth,
  int? cacheHeight,
}) =>
    Image.memory(
      bytes,
      scale: scale,
      cacheHeight: cacheHeight,
      cacheWidth: cacheWidth,
    );