Dictionary<K extends DictionaryKeyType, V> class

Dictionary/HashMap

Constructors

Dictionary.new(Map<String, V> _map, DictionaryKey<K>? _key, DictionaryValue<V>? _value)

Properties

entries Iterable<MapEntry<K, V>>
Returns a iterator over mapped entries with deserialized internal keys from Strings to DictionaryKeyType sub-types
no setter
hashCode int
The hash code for this object.
no setterinherited
keys List<K>
Returns a new list out of deserialized internal keys from Strings to DictionaryKeyType sub-types
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<V>
Returns a new list out of values
no setter

Methods

clear() → void
delete(K key) → V?
get(K key) → V?
has(K key) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(K key, V value) Dictionary<K, V>
store(Builder builder, [DictionaryKey<K>? key, DictionaryValue<V>? value]) Builder
Returns back a Builder builder, and stores there 0 if Dictionary is empty, 1 and a reference otherwise
storeDirect(Builder builder, [DictionaryKey<K>? key, DictionaryValue<V>? value]) → void
Returns nothing, and directly stores the dictionary in a builder
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createKeyAddress() DictionaryKey<DktInternalAddress>
Returns a standard InternalAddress key, wrapped in DktInternalAddress
createKeyBigInt(int bits) DictionaryKey<DktBigInt>
Returns a standard BigInt key, wrapped in DktBigInt
createKeyBigUint(int bits) DictionaryKey<DktBigInt>
Returns a standard BigInt key, wrapped in DktBigInt
createKeyInt(int bits) DictionaryKey<DktInt>
Returns a standard int key, wrapped in DktInt
createKeyList(int nbytes) DictionaryKey<DktUint8List>
Returns a standard Uint8List key, wrapped in DktUint8List
createKeyUint(int bits) DictionaryKey<DktInt>
Returns a standard int key, wrapped in DktInt
createValueAddress() DictionaryValue<Address>
Returns a standard Address value, operates mostly on InternalAddress
createValueBigInt(int bits) DictionaryValue<BigInt>
Returns a standard BigInt value
createValueBigUint(int bits) DictionaryValue<BigInt>
Returns a standard BigInt value
createValueBigVarInt(int bits) DictionaryValue<BigInt>
Returns a standard BigInt value
createValueBigVarUint(int bits) DictionaryValue<BigInt>
Returns a standard BigInt value
createValueBool() DictionaryValue<bool>
Returns a standard bool value
createValueCell() DictionaryValue<Cell>
Returns a standard Cell value
createValueDictionary<K extends DictionaryKeyType, V>(DictionaryKey<K> key, DictionaryValue<V> value) DictionaryValue<Dictionary<K, V>>
Returns a standard Dictionary<K, V>, where K extends DictionaryKeyType
createValueInt(int bits) DictionaryValue<int>
Returns a standard int value
createValueList(int size) DictionaryValue<Uint8List>
Returns a standard Uint8List value
createValueUint(int bits) DictionaryValue<int>
Returns a standard int value
empty<K extends DictionaryKeyType, V>([DictionaryKey<K>? key, DictionaryValue<V>? value]) Dictionary<K, V>
Returns a new Dictionary with an empty map of values
load<K extends DictionaryKeyType, V>(DictionaryKey<K> key, DictionaryValue<V> value, Slice sc) Dictionary<K, V>
Returns a new Dictionary from a Slice
loadCell<K extends DictionaryKeyType, V>(DictionaryKey<K> key, DictionaryValue<V> value, Cell cell) Dictionary<K, V>
Returns a new Dictionary from a Cell
loadDirect<K extends DictionaryKeyType, V>(DictionaryKey<K> key, DictionaryValue<V> value, Slice sc) Dictionary<K, V>
Returns a new Dictionary from a Slice directly, without going to the reference
loadDirectCell<K extends DictionaryKeyType, V>(DictionaryKey<K> key, DictionaryValue<V> value, Cell cell) Dictionary<K, V>
Returns a new Dictionary from a Cell directly, without going to the reference