formattedAmount property

String get formattedAmount

Implementation

String get formattedAmount {
  try {
    final numAmount = double.parse(amount);
    final divisor = precision > 0 ? 1000 : 1;
    return (numAmount / divisor).toStringAsFixed(0);
  } catch (e) {
    return amount;
  }
}