hasTrait<T extends Trait<Object> > method
Whether the shape has a trait of type T
.
Implementation
bool hasTrait<T extends Trait>() => values.any((t) => t is T);
Whether the shape has a trait of type T
.
bool hasTrait<T extends Trait>() => values.any((t) => t is T);