allowsMany property

bool get allowsMany

Whether this cardinality permits multiple instances.

Implementation

bool get allowsMany => switch (this) {
  oneOrMore || many => true,
  exactlyOne || zeroOrOne => false,
};