copyWith method

Amount copyWith({
  1. BigInt? value,
  2. int? decimals,
})

Implementation

Amount copyWith({
  BigInt? value,
  int? decimals,
}) {
  if (value == null && decimals == null) return this;

  return Amount(
    value: value ?? this.value,
    decimals: decimals ?? this.decimals,
  );
}