toFixed static method
toFixed
Implementation
static String toFixed(value, {int digits = 2, String def = "0"}) {
if (value == null || value.toString().isEmpty) return def;
return double.parse(value.toString()).toStringAsFixed(digits);
}
toFixed
static String toFixed(value, {int digits = 2, String def = "0"}) {
if (value == null || value.toString().isEmpty) return def;
return double.parse(value.toString()).toStringAsFixed(digits);
}