isTypeOrNull<T> function

IValidator isTypeOrNull<T>()

Returns a Validator that checks if the given value is the correct type

Implementation

IValidator isTypeOrNull<T>() => isType<T>() | isNull();