copyWith method
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,
);