copyWith method

TronKey copyWith({
  1. TronAddress? address,
  2. BigInt? weight,
})

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

Implementation

TronKey copyWith({
  TronAddress? address,
  BigInt? weight,
}) {
  return TronKey(
    address: address ?? this.address,
    weight: weight ?? this.weight,
  );
}