MigrationPlan constructor
MigrationPlan({
- required Engine engine,
- required List<
String> steps, - required SchemaSnapshot snapshot,
Implementation
MigrationPlan({
required this.engine,
required List<String> steps,
required SchemaSnapshot snapshot,
}) : steps = List.unmodifiable(steps),
snapshot = freezeSnapshot(snapshot) {
if (engine != snapshot.engine) {
throw ArgumentError('Plan and snapshot engines differ.');
}
}