VendorDictionary<V> class abstract interface

Concurrent structures with Map-liked API that to obtains device vendor informations.

The guideline of values type V should be followed in this list:

  • If some values represents as binary, please assign them with TypedData implemented data type.
  • The ideal values type should be Dart's primitive type (e.g. int, String and bool) along with List.
Implementers
Available extensions

Constructors

VendorDictionary.fromMap(Map<String, V> map)
Emulate VendorDictionary behaviours from Map by simply creating VendorDictionary.instant and yield all Map.entries contents.
factory
VendorDictionary.instant(EntriesStreamGenerator<V> generator)
Construct ad hoc VendorDictionary that relys on generator for one uses purpose.
factory

Properties

entries VendorDictionaryEntriesStream<V>
A collection of DictionaryEntry contains in this dictionary.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty Future<bool>
Determine this dictionary contains nothing.
no setter
isNotEmpty Future<bool>
Determine at least one elements stored in this dictionary.
no setter
keys Stream<String>
Streaming all available keys from entries.
no setter
length Future<int>
Length of DictionaryEntry stored in this dictionary.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Stream<V>
Streaming all values stores in entries, which can be duplicated.
no setter

Methods

any(bool condition(String key, V value)) Future<bool>
Find at least one entries satisified condition.
cast<RV>() VendorDictionary<RV>
Cast value type V to RV, whatever the values is associate or not.
containsKey(String key) Future<bool>
Determine it has unique record of the key.
containsValue(V value) Future<bool>
Determine at least one value found in entries.
every(bool condition(String key, V value)) Future<bool>
Find every entries is satified condition.
forEach(void action(String key, V value)) Future<void>
Apply action to execute every entries.
map<RV>(DictionaryEntry<RV> convert(String key, V value)) VendorDictionary<RV>
convert each values to RV as well as modifying keys.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
where(bool condition(String key, V value)) VendorDictionary<V>
Filter entries with matched condition.
whereValueType<RV>() VendorDictionary<RV>
Filter entries if values type is RV.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) Future<V>
Obtains values associated with key.