isString function

IValidator isString()

Returns a IValidator that checks if the given value is a String For better performance and readability, use the $isString variable directly.

Implementation

IValidator isString() => isType<String>();