isTypeOrNull<T> function

IValidator isTypeOrNull<T>({
  1. String? message,
})

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

Implementation

IValidator isTypeOrNull<T>({String? message}) => isType<T>(message: message).nullable();