copyWith method

AccountPermissionUpdateContract copyWith({
  1. TronAddress? ownerAddress,
  2. Permission? owner,
  3. Permission? witness,
  4. List<Permission>? actives,
})

Create a new AccountPermissionUpdateContract instance by copying the existing one and replacing specified fields with new values.

Implementation

AccountPermissionUpdateContract copyWith({
  TronAddress? ownerAddress,
  Permission? owner,
  Permission? witness,
  List<Permission>? actives,
}) {
  return AccountPermissionUpdateContract(
    ownerAddress: ownerAddress ?? this.ownerAddress,
    owner: owner ?? this.owner,
    witness: witness ?? this.witness,
    actives: actives ?? this.actives,
  );
}