copyWith method

  1. @useResult
DatabaseMigrationVersionModel copyWith({
  1. String? module,
  2. String? version,
  3. DateTime? timestamp = const _iss.$UndefinedDateTime(),
})

Returns a shallow copy of this DatabaseMigrationVersionModel with some or all fields replaced by the given arguments.

Implementation

@_iss.useResult
DatabaseMigrationVersionModel copyWith({
  String? module,
  String? version,
  DateTime? timestamp = const _iss.$UndefinedDateTime(),
}) {
  return DatabaseMigrationVersionModel(
    module: module ?? this.module,
    version: version ?? this.version,
    timestamp: timestamp is _iss.UndefinedSentinel
        ? this.timestamp
        : timestamp,
  );
}