isNum static method

bool isNum(
  1. dynamic string
)

Implementation

static bool isNum(string) {
  num? number = num.tryParse('$string');
  return number != null;
}