isNullOrZero property

bool get isNullOrZero

isNullOrZero: Checks if the object is null or zero.

Implementation

bool get isNullOrZero {
  if (this is num) {
    return this == null || this == 0;
  }
  return this == null || this == '';
}