scrollInertiaCancel method

PointerScrollInertiaCancelEvent scrollInertiaCancel(
  1. {Duration timeStamp =}

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

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


PointerScrollInertiaCancelEvent scrollInertiaCancel({
  Duration timeStamp =,
}) {
  assert(kind != PointerDeviceKind.touch, "Touch pointers can't generate pointer signal events");
  assert(location != null);
  return PointerScrollInertiaCancelEvent(
    timeStamp: timeStamp,
    kind: kind,
    device: _device,
    position: location!