pointText function

String pointText(
  1. double v
)

A coordinate for a reply: whole numbers bare, fractions to one decimal.

Implementation

String pointText(double v) => v == v.roundToDouble() ? '${v.round()}' : v.toStringAsFixed(1);