doubleToString static method

String doubleToString(
  1. double value
)

Implementation

static String doubleToString(double value){
  return value.toStringAsFixed(value.truncateToDouble() == value ? 0 : 1);
}