SurrogatePairValidationController constructor

SurrogatePairValidationController({
  1. String message = 'Invalid SurrogatePair',
  2. bool required = false,
})

Implementation

SurrogatePairValidationController(
    {String message = 'Invalid SurrogatePair', bool required = false})
    : super(
          message: message,
          isValid: ({controller}) {
            String? textValue = controller?.rawValue?.toString();
            if (!required && TextUtils.isEmpty(textValue)) return true;
            return Validators.isSurrogatePair(textValue!);
          });