dispose method

  1. @mustCallSuper
void dispose()

Keep a dispose method to sync with State. 保留一个 dispose 方法与 State 同步。

Implementation

@mustCallSuper
void dispose() {
  provider?.dispose();
  pageController.dispose();
  pageStreamController.close();
  previewingListController.dispose();
  selectedNotifier.dispose();
  isDisplayingDetail.dispose();
  doubleTapAnimationController
    ..stop()
    ..reset()
    ..dispose();
}