removePointer method

PointerRemovedEvent removePointer(
  1. {Duration timeStamp =,
  2. Offset? location}

Create a PointerRemovedEvent with the PointerDeviceKind the pointer was created with.

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


PointerRemovedEvent removePointer({
  Duration timeStamp =,
  Offset? location,
}) {
  _location = location ?? _location;
  return PointerRemovedEvent(
    timeStamp: timeStamp,
    kind: kind,
    device: _device,
    pointer: pointer,
    position: _location ??,