firstRelation method

MBRelation? firstRelation()

The first relation for this element, if exists; null otherwise.

Implementation

MBRelation? firstRelation() {
  if (relations.isNotEmpty) {
    return relations.first;
  }
  return null;
}