hasDefaultValue property

bool get hasDefaultValue

Whether the same has a default value.

Shapes which have default values are only considered boxed when explicitly marked with the boxed trait.

Implementation

bool get hasDefaultValue => getTrait<DefaultTrait>()?.value != null;