VLMServiceState constructor

VLMServiceState({
  1. bool? isReady,
  2. String? currentModel,
  3. int? contextLength,
  4. bool? supportsStreaming,
  5. bool? supportsMultipleImages,
  6. String? visionEncoderType,
  7. String? errorMessage,
  8. int? errorCode,
})

Implementation

factory VLMServiceState({
  $core.bool? isReady,
  $core.String? currentModel,
  $core.int? contextLength,
  $core.bool? supportsStreaming,
  $core.bool? supportsMultipleImages,
  $core.String? visionEncoderType,
  $core.String? errorMessage,
  $core.int? errorCode,
}) {
  final result = create();
  if (isReady != null) result.isReady = isReady;
  if (currentModel != null) result.currentModel = currentModel;
  if (contextLength != null) result.contextLength = contextLength;
  if (supportsStreaming != null) result.supportsStreaming = supportsStreaming;
  if (supportsMultipleImages != null)
    result.supportsMultipleImages = supportsMultipleImages;
  if (visionEncoderType != null) result.visionEncoderType = visionEncoderType;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (errorCode != null) result.errorCode = errorCode;
  return result;
}