isBool function

IValidator isBool({
  1. String? message,
})

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({String? message}) => isType<bool>(message: message);