firstImage method
Returns the first image of this element, if the element has no images it returns null
.
Implementation
MBImage? firstImage() {
if (images.isNotEmpty) {
return images.first;
}
return null;
}
Returns the first image of this element, if the element has no images it returns null
.
MBImage? firstImage() {
if (images.isNotEmpty) {
return images.first;
}
return null;
}