scroll method

  1. @override
void scroll(
  1. double? pixels, {
  2. bool animate = false,
})
override

scroll +/- pixels or to an item

Implementation

@override
void scroll(double? pixels, {bool animate = false}) {

  // get the view
  MenuViewState? view = findListenerOfExactType(MenuViewState);

  // scroll specified number of pixels
  // from current position
  view?.scroll(pixels, animate: animate);
}