ImageGenerationCapabilities constructor
const
ImageGenerationCapabilities({
- required bool isSupported,
- String? unsupportedReason,
- String? backendName,
- List<
String> deviceNames = const <String>[], - String? runtimeVersion,
- String? modelVersion,
- bool supportsCancellation = false,
- bool supportsLocalSafetensorsSets = false,
- bool supportsImageEditing = false,
- 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.supportsLocalSafetensorsSets = false,
this.supportsImageEditing = false,
this.maxConcurrentTasks = 0,
});