isNullOrTrue property
bool
get
isNullOrTrue
isNullOrTrue: Checks if the object is null or true.
Implementation
bool get isNullOrTrue {
if (this is bool) {
return this == null || this == true;
}
return this == null || this == '';
}