copyWith method

MigrationSection copyWith({
  1. String? directory,
  2. String? registry,
  3. String? ledgerTable,
  4. String? schemaDump,
  5. MigrationFormat? format,
})

Clones the section with optional overrides.

Implementation

MigrationSection copyWith({
  String? directory,
  String? registry,
  String? ledgerTable,
  String? schemaDump,
  MigrationFormat? format,
}) {
  return MigrationSection(
    directory: directory ?? this.directory,
    registry: registry ?? this.registry,
    ledgerTable: ledgerTable ?? this.ledgerTable,
    schemaDump: schemaDump ?? this.schemaDump,
    format: format ?? this.format,
  );
}