addPointer method

Future<void> addPointer({
  1. Duration timeStamp = Duration.zero,
  2. Offset? location,
})

In a test, send a pointer add event for this pointer.

Implementation

Future<void> addPointer({ Duration timeStamp = Duration.zero, Offset? location }) {
  return TestAsyncUtils.guard<void>(() {
    return _dispatcher(_pointer.addPointer(timeStamp: timeStamp, location: location ?? _pointer.location));
  });
}