Expose GestureBinding.handlePointerEvent, replacing dispatchEvent as the preferred way to dispatch events (#64846)
This commit is contained in:
@@ -16,17 +16,6 @@ import 'package:e2e/e2e.dart';
|
||||
import 'package:complex_layout/main.dart' as app;
|
||||
|
||||
class PointerDataTestBinding extends E2EWidgetsFlutterBinding {
|
||||
// PointerData injection would usually be considered device input and therefore
|
||||
// blocked by [TestWidgetsFlutterBinding]. Override this behavior
|
||||
// to help events go into widget tree.
|
||||
@override
|
||||
void dispatchEvent(
|
||||
PointerEvent event,
|
||||
HitTestResult hitTestResult, {
|
||||
TestBindingEventSource source = TestBindingEventSource.device,
|
||||
}) {
|
||||
super.dispatchEvent(event, hitTestResult, source: TestBindingEventSource.test);
|
||||
}
|
||||
}
|
||||
|
||||
/// A union of [ui.PointerDataPacket] and the time it should be sent.
|
||||
|
||||
Reference in New Issue
Block a user