getImageAsset method
Implementation
ui.Image? getImageAsset(String? ref) {
var imageAsset = composition.images[ref];
if (imageAsset != null) {
var imageDelegate = delegates?.image;
ui.Image? image;
if (imageDelegate != null) {
image = imageDelegate(composition, imageAsset);
}
return image ?? imageAsset.loadedImage;
} else {
return null;
}
}