isNumber static method

bool isNumber(
  1. String token
)

returns true if input token is of type number

Implementation

static bool isNumber(String token) =>
    regExpNumber.stringMatch(token) == token;