initState method
The framework will call this method exactly once.
Only when the StateMVC
object is first created.
Implementation
@override
@mustCallSuper
void initState() {
super.initState();
_scrollController = _BasicScrollController();
_scrollController.addListener(() {
// Record the offset with every scroll.
_lastOffset = _offset;
_offset = _scrollController.offset;
});
}