formatDouble static method

dynamic formatDouble(
  1. double? value, {
  2. int fixed = 2,
})

Implementation

static formatDouble(double? value, {int fixed = 2}) {
  return value != null ? value.toStringAsFixed(fixed) : '-';
}