NitroAnyMap class
- Available extensions
Constructors
- NitroAnyMap()
-
NitroAnyMap.fromDynamic(Map<
String, dynamic> source) -
Build from a plain Dart
Map<String, dynamic>.factory
Properties
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
otherinto 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
dynamicequivalents. -
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.