up method

PointerUpEvent up({
  1. Duration timeStamp = Duration.zero,
  2. FlutterView? view,
})

Create a PointerUpEvent.

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

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

Implementation

PointerUpEvent up({Duration timeStamp = Duration.zero, FlutterView? view}) {
  assert(!isPanZoomActive);
  assert(isDown);
  _isDown = false;
  return PointerUpEvent(
    viewId: view?.viewId ?? WidgetsBinding.instance.platformDispatcher.implicitView!.viewId,
    timeStamp: timeStamp,
    kind: kind,
    device: _device,
    pointer: pointer,
    position: location!,
  );
}