isEnum function
Returns a IValidator that checks if the given value is a Enum
For better performance and readability, use the $isEnum variable directly.
Implementation
IValidator isEnum() => isType<Enum>();
Returns a IValidator that checks if the given value is a Enum
For better performance and readability, use the $isEnum variable directly.
IValidator isEnum() => isType<Enum>();