isNumber function

IValidator isNumber()

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() => isType<num>();