dispose method Null safety

  1. @override
void dispose()
override

Called when the scroll view stops performing this activity.

Implementation

@override
void dispose() {
  _controller = null;
  super.dispose();
}