copyWith method

  1. @useResult
DatabaseMigrationVersionModel copyWith({
  1. String? module,
  2. String? version,
  3. Object? timestamp = _Undefined,
})

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

Implementation

@_i1.useResult
DatabaseMigrationVersionModel copyWith({
  String? module,
  String? version,
  Object? timestamp = _Undefined,
}) {
  return DatabaseMigrationVersionModel(
    module: module ?? this.module,
    version: version ?? this.version,
    timestamp: timestamp is DateTime? ? timestamp : this.timestamp,
  );
}