isNum static method

bool isNum(
  1. String value
)

Checks if string is int or double.

Implementation

static bool isNum(String value) {
  if (isNull(value)) {
    return false;
  }

  return num.tryParse(value) is num;
}