cancel method

PointerCancelEvent cancel(
  1. {Duration timeStamp =}

Create a PointerCancelEvent.

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

The object is no longer usable after this method has been called.


PointerCancelEvent cancel({ Duration timeStamp = }) {
  _isDown = false;
  return PointerCancelEvent(
    timeStamp: timeStamp,
    kind: kind,
    device: _device,
    pointer: pointer,
    position: location!,