copyWith method

Script copyWith({
  1. String? code,
  2. String? codeNumeric,
  3. String? date,
  4. String? name,
  5. String? pva,
})

Creates a copy of this object with the given fields replaced with the new values. If the new values are null, the field is left unchanged. Otherwise, the field is replaced with the new value.

Implementation

Script copyWith({
  String? code,
  String? codeNumeric,
  String? date,
  String? name,
  String? pva,
}) =>
    Script(
      name: name ?? this.name,
      code: code ?? this.code,
      codeNumeric: codeNumeric ?? this.codeNumeric,
      date: date ?? this.date,
      pva: pva ?? this.pva,
    );