BuilderFromImage typedef

BuilderFromImage = Widget Function(BuildContext context, ImgDetails img)

If the image is already available, hasImage is true, and width and height indicate the image dimensions.

If the image is not yet available, hasImage is false, and width and height are null.

The functions pixelColorAt and pixelColorAtAlignment can be used to read the color of the image pixels. If the coordinates point to outside of the image, or if the image is not yet available, then these functions will return the default-color provided in the ImagePixels constructor.

Implementation

typedef BuilderFromImage = Widget Function(BuildContext context, ImgDetails img);