intToDecimalStr static method

String intToDecimalStr(
  1. int? priceInLong,
  2. int factor
)

Implementation

static String intToDecimalStr(int? priceInLong, int factor) {
  int intValue = priceInLong ?? 0;
  double parseValue = intValue / factor;
  return parseValue.toStringAsFixed(2);
}