copy method

PolyTransaction copy({
  1. List<SimpleRecipient>? recipients,
  2. List<ToplAddress>? from,
  3. String? propositionType,
  4. ToplAddress? changeAddress,
  5. PolyAmount? fee,
  6. Latin1Data? data,
})

Implementation

PolyTransaction copy(
    {List<SimpleRecipient>? recipients,
    List<ToplAddress>? from,
    String? propositionType,
    ToplAddress? changeAddress,
    PolyAmount? fee,
    Latin1Data? data}) {
  return PolyTransaction(
      propositionType: propositionType ?? this.propositionType,
      sender: from ?? sender,
      recipients: recipients ?? this.recipients,
      changeAddress: changeAddress ?? this.changeAddress,
      fee: fee,
      data: data);
}