isNullOrEmpty property

bool isNullOrEmpty

Implementation

bool get isNullOrEmpty {
  if (_value == null) return true;
  dynamic val = _value;
  var result = false;
  if (val is Iterable) {
    result = val.isEmpty;
  } else if (val is String) {
    result = val.isEmpty;
  } else if (val is Map) {
    result = val.isEmpty;
  }
  return result;
}