allowsZero property
bool
get
allowsZero
Whether this cardinality permits no instances.
Implementation
bool get allowsZero => switch (this) {
zeroOrOne || many => true,
exactlyOne || oneOrMore => false,
};