collections library

A library for specify asynchronous data structure for accessing data between system and Flutter.

Classes

SyncedVendorDictionary<V>
Unmodifiable Map version of VendorDictionary that all values no longer formed as Future with await requires.
VendorDictionary<V>
Concurrent structures with Map-liked API that to obtains device vendor informations.
VendorDictionaryBase<V>
Predefined functions of VendorDictionary that it only requires to implement entries.
VendorDictionaryEntriesStream<V>
Stream based DictionaryEntry collection that each listeners will be isolated when listen.
VendorDictionaryEntriesStreamBase<V>
Abstract implementation of VendorDictionaryEntriesStream by overriding generateContent.

Extensions

VendorDictionarySynchronizer on VendorDictionary<V>
An extension to convert VendorDictionary, which operate asynchronously to Future wrapped SyncedVendorDictionary.

Typedefs

DictionaryEntry<V> = MapEntry<String, V>
Definitions of a MapEntry contains String based MapEntry.key with any primitative type V for MapEntry.value.
DictionaryEntryStreamAdder<V> = void Function(String key, V value)
A Function that appending DictionaryEntry into VendorDictionaryEntriesStream.
DictionaryEntryStreamThrower = void Function(Object error, [StackTrace? stackTrace])
Report error to VendorDictionaryEntriesStream when an error caught.
EntriesStreamGenerator<V> = Stream<(String, V)> Function()
A Function that to temprorary create Stream used by VendorDictionaryEntriesStream.new.

Exceptions / Errors

DictionaryKeyTypeMismatchError
Extended from TypeError when applying invalid key types in SyncedVendorDictionary.
InvalidDictionaryKeyError
Error when the provided key does not existed in VendorDictionary and SyncedVendorDictionary.
InvalidDictionaryOperationError
An abstract, general defintion of Error regarding to invalid opertation in VendorDictionary and SyncedVendorDictionary.