unlocked method Null safety
mustCallSuper">@mustCallSuperprotected">@protected
Called by lockEvents when events get unlocked.
This should flush any events that were queued while locked was true.
Implementation
@protected
@mustCallSuper
void unlocked() {
assert(!locked);
}