VLMImage constructor

VLMImage({
  1. String? filePath,
  2. List<int>? encoded,
  3. List<int>? rawRgb,
  4. String? base64,
  5. int? width,
  6. int? height,
  7. VLMImageFormat? format,
  8. String? mediaType,
  9. String? name,
  10. Int64? sizeBytes,
  11. Iterable<MapEntry<String, String>>? metadata,
})

Implementation

factory VLMImage({
  $core.String? filePath,
  $core.List<$core.int>? encoded,
  $core.List<$core.int>? rawRgb,
  $core.String? base64,
  $core.int? width,
  $core.int? height,
  VLMImageFormat? format,
  $core.String? mediaType,
  $core.String? name,
  $fixnum.Int64? sizeBytes,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? metadata,
}) {
  final result = create();
  if (filePath != null) result.filePath = filePath;
  if (encoded != null) result.encoded = encoded;
  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 (format != null) result.format = format;
  if (mediaType != null) result.mediaType = mediaType;
  if (name != null) result.name = name;
  if (sizeBytes != null) result.sizeBytes = sizeBytes;
  if (metadata != null) result.metadata.addEntries(metadata);
  return result;
}