isNullOrEmpty method

bool isNullOrEmpty()

Implementation

bool isNullOrEmpty() {
  if (this is String) {
    return (this as String).isEmpty;
  } else if (this is Iterable) {
    return (this as Iterable).isEmpty;
  }
  return this == null;
}