isString function

IValidator isString({
  1. String? message,
})

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({String? message}) => isType<String>(message: message);