getPriceString function

String getPriceString(
  1. double price
)

Implementation

String getPriceString(double price){
  if (!init)
    return "not init";
  if (!rightSymbol)
    return "$symbol${price.toStringAsFixed(digitsAfterComma)}";
  return "${price.toStringAsFixed(digitsAfterComma)}$symbol";
}