isNullOrPositive property

bool get isNullOrPositive

isNullOrPositive: Checks if the object is null or positive.

Implementation

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