VLMImage constructor

VLMImage({
  1. String? filePath,
  2. List<int>? data,
  3. List<int>? rawRgb,
  4. String? base64,
  5. int? width,
  6. int? height,
  7. String? mediaType,
  8. List<int>? rawRgba,
})

Implementation

factory VLMImage({
  $core.String? filePath,
  $core.List<$core.int>? data,
  $core.List<$core.int>? rawRgb,
  $core.String? base64,
  $core.int? width,
  $core.int? height,
  $core.String? mediaType,
  $core.List<$core.int>? rawRgba,
}) {
  final result = create();
  if (filePath != null) result.filePath = filePath;
  if (data != null) result.data = data;
  if (rawRgb != null) result.rawRgb = rawRgb;
  if (base64 != null) result.base64 = base64;
  if (width != null) result.width = width;
  if (height != null) result.height = height;
  if (mediaType != null) result.mediaType = mediaType;
  if (rawRgba != null) result.rawRgba = rawRgba;
  return result;
}