isNumber function
- String? message,
Returns a IValidator that checks if the given value is a num
For better performance and readability, use the $isNumber variable directly.
Implementation
IValidator isNumber({String? message}) => isType<num>(message: message);