convert method

  1. @override
String convert(
  1. double input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
String convert(double input) {
  if (input == double.infinity) return "Infinite";
  return "Second-${max(0, input).round()}";
}