removePointer method

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

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

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

Implementation

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