label static method

String label(
  1. double speed
)

Implementation

static String label(double speed) {
  if (speed == normal) return '1x';
  if (speed == half) return '½x';
  if (speed == quarter) return '¼x';
  if (speed == eighth) return '⅛x';
  return '${speed}x';
}