isNotEmpty property

bool isNotEmpty

Whether there is at least one key/value pair in the map.

Returns false if itself is Null.

マップに少なくとも 1 つのキーと値のペアがあるかどうかを調べます。

自身がNullな場合はfalseを返します。

Implementation

bool get isNotEmpty {
  if (this == null) {
    return false;
  }
  return this!.isNotEmpty;
}