isNullOrEmpty property

bool isNullOrEmpty

Implementation

bool get isNullOrEmpty {
  if (this == null) return true;
  if (this is String || this is List || this is Map ||
      this is Set || this is Iterable) {
    return this.isEmpty;
  } else {
    return this.toString() == 'null' || this.toString().isEmpty;
  }
}