hasKey method

bool hasKey(
  1. K value
)

Determines whether the map contains the specified key.

Implementation

bool hasKey(K value) {
  if (isSameType<K, Guid>()) return _hasKey_Guid(value as Guid);
  if (isSameType<K, int>()) return _hasKey_Uint32(value as int);
  if (isSameType<K, PedometerStepKind>()) {
    return hasKeyByPedometerStepKind(value as PedometerStepKind);
  }
  if (isSameType<K, String>()) return _hasKey_String(value as String);

  return _hasKey_Object(value as IInspectable);
}