firstImage method

MBImage? firstImage()

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;
}