onDispose method

  1. @override
void onDispose()
override

Implementation

@override
void onDispose() {
  super.onDispose();
  _scrollController?.dispose();
  _scrollController = null;
}