hasValue method

bool hasValue(
  1. K key
)

Whether key is present and its value isn't null.

Implementation

bool hasValue(K key) {
  final value = this[key];
  return value != null;
}