image property
DVImage
get
image
This asset as an image.
Refuses an asset that is not one, naming it: a video passed where an image is expected would otherwise be an empty box on a device.
Implementation
DVImage get image {
if (kind != DVAssetKind.image) {
throw ArgumentError.value(
'$this',
'asset',
'is a ${kind.name}, and an image was asked for',
);
}
return DVImage.asset(path);
}