NitroAnyMap class

Available extensions

Constructors

NitroAnyMap()
NitroAnyMap.fromDynamic(Map<String, dynamic> source)
Build from a plain Dart Map<String, dynamic>.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Iterable<String>
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
contains(String key) bool
get(String key) NitroAnyValue?
getBool(String key) bool?
getDouble(String key) double?
getInt(String key) int?
getList(String key) List<NitroAnyValue>?
getObject(String key) NitroAnyMap?
getString(String key) String?
isBool(String key) bool
isDouble(String key) bool
isInt(String key) bool
isList(String key) bool
isNull(String key) bool
isObject(String key) bool
isString(String key) bool
merge(NitroAnyMap other) → void
Merge all keys from other into this map. Existing keys are overwritten.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) → void
set(String key, NitroAnyValue v) → void
setBool(String key, bool v) → void
setDouble(String key, double v) → void
setInt(String key, int v) → void
setList(String key, List<NitroAnyValue> v) → void
setNull(String key) → void
setObject(String key, NitroAnyMap v) → void
setString(String key, String v) → void
toDynamic() Map<String, dynamic>
Convert all values to plain Dart dynamic equivalents.
toNative(Allocator alloc) Pointer<Uint8>

Available on NitroAnyMap, provided by the NitroAnyMapNative extension

Encode this map to a native buffer wrapped in the RecordWriter 4B envelope.
toString() String
A string representation of this object.
override
writeTo(RecordWriterBase w) → void
Encode this map's entries into w (no outer length prefix — the caller frames the payload for its transport).

Operators

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

Static Methods

readFrom(RecordReaderBase r) NitroAnyMap
Decode from a reader positioned at the start of the map payload.