currentModelId property
String?
get
currentModelId
Currently-loaded diffusion model id, or null.
Implementation
String? get currentModelId {
final snapshot = _lifecycleSnapshot;
if (snapshot == null ||
snapshot.state !=
ComponentLifecycleState.COMPONENT_LIFECYCLE_STATE_READY ||
snapshot.modelId.isEmpty) {
return null;
}
return snapshot.modelId;
}