doWithAppContext method
Runs the block of code with a BuildContext that resides inside the "App", CupertinoApp or MaterialApp. This code will only run once.
Implementation
void doWithAppContext(AppContextHandler onTap) {
if (!_isListening) {
_buffer.add(onTap);
} else {
_events.add(onTap);
}
}