onPause method

  1. @mustCallSuper
void onPause()
inherited

onPause is called when the widget is no longer fully displayed in the foreground. onPause will be called in the following cases:

  • before onApplicationPaused when the user returns to the app from the background
  • when the user moves to another screen and the widget is completely removed from the widget tree, then onDispose will be called immediately afterwards.

Implementation

@mustCallSuper
void onPause() {}