toDoubleValue method

double toDoubleValue({
  1. int fractionDigits = 2,
})

Return a double value with formatted according to provided fractionDigits

Implementation

double toDoubleValue({int fractionDigits = 2}) {
  return double.parse(toStringAsFixed(fractionDigits));
}