signalsDevToolsEnabled top-level property
bool
get
signalsDevToolsEnabled
Check if the signals devtools are enabled
Implementation
bool get signalsDevToolsEnabled {
final target = SignalsObserver.instance;
if (target is DevToolsSignalsObserver) {
return target.enabled;
}
return false;
}
set
signalsDevToolsEnabled
(bool value)
Manually enable/disable signals devtools
Implementation
set signalsDevToolsEnabled(bool value) {
final target = SignalsObserver.instance;
if (target is! DevToolsSignalsObserver && value) {
SignalsObserver.instance = DevToolsSignalsObserver();
} else if (target is DevToolsSignalsObserver) {
target.enabled = value;
}
}