isBool function

IValidator isBool()

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

Implementation

IValidator isBool() => isType<bool>();