discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

VisionSpecs constructor

const VisionSpecs({
  1. required VisionEncoderType encoderType,
  2. required List<String> supportedFormats,
  3. required int maxFileSize,
  4. required int minFileSize,
  5. required int maxWidth,
  6. required int maxHeight,
  7. required int minWidth,
  8. required int minHeight,
  9. required int targetWidth,
  10. required int targetHeight,
})

Implementation

const VisionSpecs({
  required this.encoderType,
  required this.supportedFormats,
  required this.maxFileSize,
  required this.minFileSize,
  required this.maxWidth,
  required this.maxHeight,
  required this.minWidth,
  required this.minHeight,
  required this.targetWidth,
  required this.targetHeight,
});