removeDecimalZeroWithSingleDecimal method

String removeDecimalZeroWithSingleDecimal()

Implementation

String removeDecimalZeroWithSingleDecimal() => this % 1 == 0 ? toInt().toString() : toStringAsFixed(1);