MigrationScope class final
What a step reports through, while it runs on one node or document.
Constructors
- MigrationScope.silent(MigrationStep step, {String nodeId = '', Json? document})
-
A scope that reports nothing (a step run to compute a value), on node
nodeIdofdocumentwhen given.
Properties
- document → Json?
-
The document being migrated, as it was before this pass's steps ran
(for the steps of 30.1.0, after schema 2's); null for a node given
alone to a step. Read it, never write it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeId → String
-
The node it runs on; empty for a document step.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → MigrationStep
-
The step running.
final
Methods
-
behaviorChange(
String message, {String path = '', Object? old, Object? value, String instead = ''}) → void - A behavior that renders or acts differently after the migration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rewrite(
String path, Object? old, Object? value, [String message = '']) → void -
A value at
pathrewritten fromoldtovalue. -
toString(
) → String -
A string representation of this object.
inherited
-
unconvertible(
Json node, String name, Object? value, {required String instead, String path = '', String message = ''}) → void -
A value with no schema-3 form: kept in
nodeaslegacy.<name>(no longer read) and reported with what to writeinstead.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited