A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://api.dart.dev/stable/3.8.1/dart-core/MapEntry-class.html below:

MapEntry class - dart:core library

MapEntry<K, V> class final

A key/value pair representing an entry in a Map.

The Map interface contains various methods that can inspect or modify the map based on entry objects.

final map = {'1': 'A', '2': 'B'};
map.addEntries([
 MapEntry('3', 'C'),
 MapEntry('4', 'D'),
]);
print(map); // {1: A, 2: B, 3: C, 4: D}

Do not extend or implement the MapEntry class. If the Dart language introduces value types, the MapEntry class will be changed to such a type, and will likely no longer be able to be implemented or extended by classes.

Constructors
MapEntry.new(K key, V value)
Creates an entry with key and value.

const

factory

Properties
hashCode int
The hash code for this object.

no setterinherited

key → K
The key of the entry.

final

runtimeType Type
A representation of the runtime type of the object.

no setterinherited

value → V
The value associated to key in a map.

final

Methods
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.

inherited

toString() String
String representation intended for debugging only.

override

Operators
operator ==(Object other) bool
The equality operator.

inherited


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4