VLMImage class

Image input for VLM - handles Dart-native image formats

Supports three image formats:

  • filePath: Path to an image file (JPEG, PNG, etc.)
  • rgbPixels: Raw RGB pixel data (RGBRGBRGB layout)
  • base64: Base64-encoded image data

Matches iOS VLMImage but uses Dart-native types instead of UIImage/CVPixelBuffer.

Constructors

VLMImage.base64(String encoded)
Create from base64-encoded image data
factory
VLMImage.filePath(String path)
Create from a file path (JPEG, PNG, etc.)
factory
VLMImage.rgbPixels(Uint8List data, {required int width, required int height})
Create from raw RGB pixel data (RGBRGBRGB layout)
factory

Properties

format VLMImageFormat
final
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