isNull function

IValidator isNull()

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

Implementation

IValidator isNull() => isType<Null>();