asset property
Image
get
asset
Implementation
Image get asset {
final cached = BaseX.getCacheMethod<Image>(path);
if (cached != null) {
return cached;
}
// If not cached, load the image
final image = Image.asset(path);
BaseX.setCacheMethod(path, image);
return image;
}