isNullOrZeroOrNegative property
bool
get
isNullOrZeroOrNegative
isNullOrZeroOrNegative: Checks if the object is null, zero or negative.
Implementation
bool get isNullOrZeroOrNegative {
if (this is num) {
return this == null || (this! as num) <= 0;
}
return this == null || this == '';
}