Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. MidiInputMap
  4. containsKey method
containsKey
description

containsKey method

boolcontainsKey(
  1. dynamickey
)
override

Whether this map contains the givenkey.

Returns true if any of the keys in the map are equal tokeyaccording to the equality used by the map.

final moonCount = <String, int>{'Mercury': 0, 'Venus': 0, 'Earth': 1,  'Mars': 2, 'Jupiter': 79, 'Saturn': 82, 'Uranus': 27, 'Neptune': 14};final containsUranus = moonCount.containsKey('Uranus'); // truefinal containsPluto = moonCount.containsKey('Pluto'); // false

Implementation

bool containsKey(dynamic key) => _getItem(key) != null;
  1. Dart
  2. dart:html
  3. MidiInputMap
  4. containsKey method
MidiInputMap class

[8]ページ先頭

©2009-2025 Movatter.jp