amount method

  1. @override
String amount(
  1. String amount,
  2. String currency
)
override

A payment amount with its currency, as the payment sheet shows it: "12.50 EUR". amount is in the main unit with a dot, as PaymentContent.amount gives it. Apps call amountOf(amount, currency), which also covers a missing amount or currency.

In en, this message translates to: '{amount} {currency}'

Implementation

@override
String amount(String amount, String currency) {
  return '$amount $currency';
}