Soclly Lens Validator

The Soclly Lens Validator is a Flutter package designed to validate various types of data against predefined protocols. It offers validation for text, image, audio, and video data.

Installation

To use the Soclly Lens Validator package, add it as a dependency in your pubspec.yaml file:

dependencies:
  soclly_lens_validator: ^4.0.0

# Soclly Lens Validator

The Soclly Lens Validator is a Flutter package designed to validate various types of data against predefined protocols. It offers validation for text, image, audio, and video data.

## Installation

To use the Soclly Lens Validator package, add it as a dependency in your `pubspec.yaml` file:

```yaml
dependencies:
  soclly_lens_validator: ^4.0.0

import 'package:soclly_lens_validator/soclly_lens_validator.dart';

void main() {
  // Example usage of text validation
  validateTextOnly(jsonString: '{"text": "Hello, world!"}').then((result) {
    print('Text Validation Result: $result');
  }).catchError((error) {
    print('Text Validation Error: $error');
  });

  // Example usage of image validation
  validateImage(jsonString: '{"image": "base64_encoded_image_data"}').then((result) {
    print('Image Validation Result: $result');
  }).catchError((error) {
    print('Image Validation Error: $error');
  });

  // Example usage of audio validation
  validateAudio(jsonString: '{"audio": "base64_encoded_audio_data"}').then((result) {
    print('Audio Validation Result: $result');
  }).catchError((error) {
    print('Audio Validation Error: $error');
  });

  // Example usage of video validation
  validateVideo(jsonString: '{"video": "base64_encoded_video_data"}').then((result) {
    print('Video Validation Result: $result');
  }).catchError((error) {
    print('Video Validation Error: $error');
  });
}