copyWith method

Script copyWith({
  1. String? name,
  2. String? code,
  3. String? codeNumeric,
  4. String? date,
  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? name,
  String? code,
  String? codeNumeric,
  String? date,
  String? pva,
}) =>
    Script(
      name: name ?? this.name,
      code: code ?? this.code,
      codeNumeric: codeNumeric ?? this.codeNumeric,
      date: date ?? this.date,
      pva: pva ?? this.pva,
    );