onPush method

  1. @override
void onPush()
override

Called after the page is pushed onto the router.

Implementation

@override
void onPush() {
  super.onPush();
  _librarySub = XGallery.libraryChanges.listen((_) => _refreshPhotos());
  _lifecycle = MediaHost.current.lifecycle;
  _lastLifecycle = _lifecycle!.value;
  _lifecycle!.addListener(_onLifecycle);
  _refreshAccess();
}