toDecimal static method

double toDecimal(
  1. String? priceInLong,
  2. int factor
)

Implementation

static double toDecimal(String? priceInLong, int factor) {
  int intValue = int.parse(priceInLong ?? '0');
  return intValue / factor;
}