isTrue property
bool
get
isTrue
Returns true only when this value is non-null and true.
Example:
bool? value;
value.isTrue; // false
Implementation
bool get isTrue => this == true;
Returns true only when this value is non-null and true.
Example:
bool? value;
value.isTrue; // false
bool get isTrue => this == true;