isNumeric static method

bool isNumeric(
  1. String? string
)

Checks if string is a number by attempting to parse it as a double.

INFINITY and NaN are not treated as numbers.

Implementation

static bool isNumeric(String? string) => Type.isNumeric(string);