isNumeric static method

bool isNumeric(
  1. String t
)

True for a digit-led token or a number word.

Implementation

static bool isNumeric(String t) =>
    t.isNotEmpty &&
    ((t.codeUnitAt(0) >= 0x30 && t.codeUnitAt(0) <= 0x39) ||
        _numericWords.containsKey(t));