scrollInertiaCancel method

PointerScrollInertiaCancelEvent scrollInertiaCancel({
  1. Duration timeStamp = Duration.zero,
  2. FlutterView? view,
})

Create a PointerScrollInertiaCancelEvent (e.g., user resting their finger on the trackpad).

By default, the time stamp on the event is Duration.zero. You can give a specific time stamp by passing the timeStamp argument.

Implementation

PointerScrollInertiaCancelEvent scrollInertiaCancel({
  Duration timeStamp = Duration.zero,
  FlutterView? view,
}) {
  assert(kind != PointerDeviceKind.touch, "Touch pointers can't generate pointer signal events");
  assert(location != null);
  return PointerScrollInertiaCancelEvent(
    viewId: view?.viewId ?? WidgetsBinding.instance.platformDispatcher.implicitView!.viewId,
    timeStamp: timeStamp,
    kind: kind,
    device: _device,
    position: location!,
  );
}