MigrationPlan constructor

MigrationPlan({
  1. required Engine engine,
  2. required List<String> steps,
  3. 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.');
  }
}