isNumber static method
Returns true if the String contains digits and delimiters (periods or commas) where delimiters are not at the start or end of the String.
Implementation
static bool isNumber(String term) =>
RegExp(rNumber).allMatches(term.trim()).length == 1;