isNum method

bool isNum(
  1. dynamic value
)

Checks if the given value is a numeric value (either int or double).

Implementation

bool isNum(value) {
  return value is num;
}