asWidget method
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,
);