LookupMap<T> class

An extension type that allows for automatic correction of custom ids to the original id.

This is used to automatically correct the id when accessing the data.

Constructors

LookupMap(LookupMapRecord<T> value)

Properties

dataMap Map<String, T>
Returns the data map.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if the data map is empty.
no setter
isNotEmpty bool
Returns true if the data map is not empty.
no setter
keys Iterable<String>
Returns the keys of the data map.
no setter
lookupMap Map<String, String>
Returns the lookup map.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value LookupMapRecord<T>
final
values Iterable<T>
Returns the values of the data map.
no setter

Methods

containsKey(String customID) bool
Returns true if the corrected key is in the data map.
correctedKey(String key) String
Takes a key and outputs either itself or the looked-up key associated by the value.lookupMap.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String customID) → void
Removes the data associated with the corrected key.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → T?
Returns the data associated with the corrected key.
operator []=(String key, T data) → void
Sets the data associated with the corrected key.