Migration class abstract

Represents a single migration step from one schema version to another.

You will create concrete implementations of this class for each schema change in your application.

Constructors

Migration()

Properties

fromVersion int
The schema version this migration starts from.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toVersion int
The schema version this migration migrates to.
no setter

Methods

migrate(Map<String, dynamic> oldData) Map<String, dynamic>
Executes the migration logic on a single raw data object. The map represents a single entity serialized to a map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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