firstMedia method

MBMedia? firstMedia()

The first media of the element if exists, null otherwise.

Implementation

MBMedia? firstMedia() {
  if (media.isNotEmpty) {
    return media.first;
  }
  return null;
}