ImageGenerationCapabilities constructor

const ImageGenerationCapabilities({
  1. required bool isSupported,
  2. String? unsupportedReason,
  3. String? backendName,
  4. List<String> deviceNames = const <String>[],
  5. String? runtimeVersion,
  6. String? modelVersion,
  7. bool supportsCancellation = false,
  8. int maxConcurrentTasks = 0,
})

Creates a capability snapshot.

Implementation

const ImageGenerationCapabilities({
  required this.isSupported,
  this.unsupportedReason,
  this.backendName,
  this.deviceNames = const <String>[],
  this.runtimeVersion,
  this.modelVersion,
  this.supportsCancellation = false,
  this.maxConcurrentTasks = 0,
});