Base64ValidationController constructor

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

Implementation

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