onPush method

  1. @override
void onPush()
override

Called after the page is pushed onto the router.

Implementation

@override
void onPush() {
  super.onPush();
  if (focusedEntry.input is VideoMedia) {
    focusedEntry.retainVideo();
  }
}