image property
The pathname for an image.
This image path can have two forms:
- URL - if the image path starts with http(s)://... the image is loaded
from the internet using the
Image.network()
constructor. - Asset - otherwise, it is assumed that this is the path to a local image
asset and the image is loaded from the asset bundle using the
Image.asset()
constructor.
Implementation
String? image;