mirrored_repositories/espresso-cash-public/packages/espressocash_app/lib/features/payment_request
import 'package:flutter/widgets.dart';

import '../../conversion_rates/widgets/extensions.dart';
import '../../tokens/token_list.dart';
import '../models/payment_request.dart';

extension PaymentRequestFormatAmountExt on PaymentRequest {
  String formattedAmount(Locale locale) =>
      payRequest.cryptoAmount(TokenList())?.format(locale) ?? '';
}
