isInt function

IValidator isInt()

Returns a IValidator that checks if the given value is a int For better performance and readability, use the $isInt variable directly.

Implementation

IValidator isInt() => isType<int>();