copyWith method

AuxiliaryData copyWith({
  1. GeneralTransactionMetadata? metadata,
  2. List<NativeScript>? nativeScripts,
  3. List<PlutusScript>? plutusScripts,
  4. bool? preferAlonzoFormat,
})

Implementation

AuxiliaryData copyWith({
  GeneralTransactionMetadata? metadata,
  List<NativeScript>? nativeScripts,
  List<PlutusScript>? plutusScripts,
  bool? preferAlonzoFormat,
}) {
  return AuxiliaryData(
    metadata: metadata ?? this.metadata,
    nativeScripts: nativeScripts ?? this.nativeScripts,
    plutusScripts: plutusScripts ?? this.plutusScripts,
    preferAlonzoFormat: preferAlonzoFormat ?? this.preferAlonzoFormat,
  );
}