needBuild method

  1. @override
bool needBuild()
override

Implementation

@override
bool needBuild() {
  if (_percent == _controller.percent &&
      _stickyIndex == _controller.stickySectionIndex) {
    return false;
  }
  _percent = _controller.percent;
  _stickyIndex = _controller.stickySectionIndex;
  return true;
}