convert method

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

Converts input and returns the result of the conversion.

Implementation

@override
double convert(String input) {
  if (input == "Infinite") return double.infinity;
  return double.parse(input.split("Second-")[1]);
}