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, String>()) return _hasKey_String(value as String);
  if (isSubtypeOfWinRTEnum<K>()) {
    return _hasKey_enum(value as WinRTEnum);
  }

  return _hasKey_Object(value as IInspectable);
}