updateWithCustomEvent method Null safety

  1. @visibleForTesting
Future<void> updateWithCustomEvent(
  1. PointerEvent event,
  2. {Duration timeStamp = Duration.zero}
)

In a test, send a move event that moves the pointer by the given offset.

Implementation

@visibleForTesting
Future<void> updateWithCustomEvent(PointerEvent event, { Duration timeStamp = Duration.zero }) {
  _pointer.setDownInfo(event, event.position);
  return TestAsyncUtils.guard<void>(() {
    return _dispatcher(event);
  });
}