validators/type library

Type Validators

This file contains validators for checking the type of values.

Functions

isBool({String? message}) IValidator
Returns a IValidator that checks if the given value is a bool For better performance and readability, use the $isBool variable directly.
isDateTime({String? message}) IValidator
Returns a IValidator that checks if the given value is a DateTime For better performance and readability, use the $isDateTime variable directly.
isDouble({String? message}) IValidator
Returns a IValidator that checks if the given value is a double For better performance and readability, use the $isDouble variable directly.
isEnum({String? message}) IValidator
Returns a IValidator that checks if the given value is a Enum For better performance and readability, use the $isEnum variable directly.
isFunction({String? message}) IValidator
Returns a IValidator that checks if the given value is a Function For better performance and readability, use the $isFunction variable directly.
isFuture<T>({String? message}) IValidator
Returns a IValidator that checks if the given value is a Future For better performance and readability, use the $isFuture variable directly.
isInt({String? message}) IValidator
Returns a IValidator that checks if the given value is a int For better performance and readability, use the $isInt variable directly.
isIterable<T>({String? message}) IValidator
Returns a IValidator that checks if the given value is a Iterable For better performance and readability, use the $isIterable variable directly.
isList<T>({String? message}) IValidator
Returns a IValidator that checks if the given value is a List For better performance and readability, use the $isList variable directly.
isMap<K, V>({String? message}) IValidator
Returns a IValidator that checks if the given value is a Map For better performance and readability, use the $isMap variable directly.
isNull({String? message}) IValidator
Returns a IValidator that checks if the given value is null For better performance and readability, use the $isNull variable directly.
isNumber({String? message}) IValidator
Returns a IValidator that checks if the given value is a num For better performance and readability, use the $isNumber variable directly.
isRecord({String? message}) IValidator
Returns a IValidator that checks if the given value is a Record
isSet<T>({String? message}) IValidator
Returns a IValidator that checks if the given value is a Set For better performance and readability, use the $isSet variable directly.
isString({String? message}) IValidator
Returns a IValidator that checks if the given value is a String For better performance and readability, use the $isString variable directly.
isSymbol({String? message}) IValidator
Returns a IValidator that checks if the given value is a Symbol For better performance and readability, use the $isSymbol variable directly.
isType<T>({String? message}) IValidator
Returns a Validator that checks if the given value is the correct type
isTypeOrNull<T>({String? message}) IValidator
Returns a Validator that checks if the given value is the correct type