FlagProperty constructor
Constructs a FlagProperty with the given descriptions with the specified descriptions.
showName
defaults to false as typically ifTrue
and ifFalse
should
be descriptions that make the property name redundant.
Implementation
FlagProperty(
String name, {
required bool? value,
this.ifTrue,
this.ifFalse,
bool showName = false,
Object? defaultValue,
DiagnosticLevel level = DiagnosticLevel.info,
}) : assert(ifTrue != null || ifFalse != null),
super(
name,
value,
showName: showName,
defaultValue: defaultValue,
level: level,
);