scroll method

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

scroll +/- pixels or to an item

Implementation

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

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

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