ObjectFlagProperty< T>.has constructor
Shorthand constructor to describe whether the property has a value.
Only use if prefixing the property name with the word 'has' is a good flag name.
The name
and level
arguments must not be null.
Implementation
ObjectFlagProperty.has(
String name,
T value, {
DiagnosticLevel level = DiagnosticLevel.info,
}) : assert(name != null),
assert(level != null),
ifPresent = 'has $name',
super(
name,
value,
showName: false,
level: level,
);