isNullOrNegative property

bool get isNullOrNegative

isNullOrNegative: Checks if the object is null or negative.

Implementation

bool get isNullOrNegative {
  if (this is num) {
    return this == null || (this! as num) < 0;
  }
  return this == null || this == '';
}