LightweightMigration class
LightweightMigration
is a class that extends SerializationHook
.
It provides a lightweight way to handle migrations by executing a list of migration functions before deserialization.
The class has one property:
functions
: A list of migration functions to be executed before deserialization.
- Inheritance
-
- Object
- SerializationHook
- LightweightMigration
Constructors
-
LightweightMigration(List<
MigrationFunction> migrations) -
Constructs a
LightweightMigration
instance.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
migrations
→ List<
MigrationFunction> -
The list of migration functions to be executed before deserialization.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beforeDeserialization(
Map< String, dynamic> map, DogStructure structure, DogEngine engine) → void -
Executes each migration function in the
migrations
list before deserialization.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postSerialization(
dynamic obj, Map< String, dynamic> map, DogStructure structure, DogEngine engine) → void -
This method is called after an object is serialized by NativeSerializerMode.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited