addKey method Null safety
- ProgramOperation key
Implementation
void addKey(ProgramOperation key) {
if (_keys.length >= 1000) {
// ridiculously big
// So we reset it, so as to not fill up memory
_model._debugLog = null;
final replacement = DebugLog(_model)..initModelState();
_model._debugLog = replacement;
replacement.addKey(key);
} else {
_keys.add(key.debugLogId);
}
}