isEmpty property

bool get isEmpty

Implementation

bool get isEmpty {
  if (T is bool) {
    // For boolean types, we consider it non-empty
    return false;
  }

  if (T is Iterable) {
    return (snapshot.data as Iterable).isEmpty;
  }

  return !hasData;
}