formatPrice method

String formatPrice(
  1. double price
)

格式化单个价格显示

Implementation

String formatPrice(double price) {
  return '$symbol${price.toStringAsFixed(2)}';
}