description property

String get description

Returns a human-readable description of the fee

Implementation

String get description {
  return maybeMap(
    ethGas:
        (fee) =>
            'Gas: ${fee.gas} @ ${_formatNumber(fee.gasPrice * Decimal.fromInt(_gweiInEth), precision: 2)} Gwei',
    ethGasEip1559:
        (fee) =>
            'Gas: ${fee.gas} @ ${_formatNumber(fee.maxFeePerGas * Decimal.fromInt(_gweiInEth), precision: 2)} Gwei (EIP1559)',
    orElse: formatTotal,
  );
}