VisionEncoderValidator class

Validates images for compatibility with AI vision encoders to prevent corruption that causes models to interpret images as repeating text patterns.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

validateForEncoder({required Uint8List imageBytes, required VisionEncoderType encoderType, String? originalFormat}) ValidationResult
Validates an image for compatibility with the specified vision encoder

Constants

gemma3Specs → const Gemma3Specs
Gemma 3 vision encoder specifications
generalSpecs → const GeneralVisionSpecs
General vision encoder specifications