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
boolFor better performance and readability, use the $isBool variable directly. -
isDateTime(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
DateTimeFor better performance and readability, use the $isDateTime variable directly. -
isDouble(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
doubleFor better performance and readability, use the $isDouble variable directly. -
isEnum(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
EnumFor better performance and readability, use the $isEnum variable directly. -
isFunction(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
FunctionFor 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
FutureFor better performance and readability, use the $isFuture variable directly. -
isInt(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
intFor 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
IterableFor 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
ListFor 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
MapFor better performance and readability, use the $isMap variable directly. -
isNull(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is
nullFor better performance and readability, use the $isNull variable directly. -
isNumber(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
numFor 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
SetFor better performance and readability, use the $isSet variable directly. -
isString(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
StringFor better performance and readability, use the $isString variable directly. -
isSymbol(
{String? message}) → IValidator -
Returns a IValidator that checks if the given value is a
SymbolFor 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