OnDemandSerializable class Null safety

Supports classes with normal fields. Instead of always keeping field values in the attributes field, the fields and their values are only written/read on demand when needed.

Constructors

OnDemandSerializable()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
read(Map<String, dynamic> attributes) → void
Reads all field keys and values from the specified attributes map. This method is called after the de-serialization. [...]
toString() String
A string representation of this object. [...]
inherited
write(Map<String, dynamic> attributes) → void
Sets all field keys and values in the specified attributes map. This method is called before the serialization. [...]

Operators

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