captureDebugLog property Null safety

bool captureDebugLog

Implementation

bool get captureDebugLog => _debugLog != null;
void captureDebugLog=(bool v)

Starts or stops capturing debug log information. A debug log captures the calculator state, and subsequent keystrokes. It's meant to be a tool to facilitate bug reports.

Implementation

set captureDebugLog(bool v) {
  if (v) {
    _debugLog ??= (DebugLog(this)
      ..initModelState());
  } else {
    _debugLog = null;
  }
}