Future<Null> fling(Finder finder, Offset offset, double velocity, { int pointer: 1, Duration frameInterval: const Duration(milliseconds: 16) })

Attempts a fling gesture starting from the center of the given widget, moving the given distance, reaching the given velocity.

If the middle of the widget is not exposed, this might send events to another object.

This can pump frames. See flingFrom for a discussion of how the offset, velocity and frameInterval arguments affect this.

Source

Future<Null> fling(Finder finder, Offset offset, double velocity, { int pointer: 1, Duration frameInterval: const Duration(milliseconds: 16) }) {
  return flingFrom(getCenter(finder), offset, velocity, pointer: pointer, frameInterval: frameInterval);
}