Repository: flutter
Issue: [Web] Flutter web throws exceptions on tap gestures
Labels: c: crash,framework,f: material design,f: gestures,platform-web,a: mouse,P2,team-web,triaged-web

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

Create a new **web** project with `InkWell`, `ElevatedButton` or any other material button.  Click the button many times rapidly (it occurres randomly after several clicks - sometimes 4, sometimes 10, etc.).

### Expected results

Normal on tap callback without exceptions.

### Actual results

Assertion failed exception is thrown. 

```console
Assertion failed: file:///Users/Abigotado/flutter/packages/flutter/lib/src/gestures/events.dart:1551:15
!identical(kind, PointerDeviceKind.trackpad)
is not true
```

App continues to work without crashes, but the exception will be thrown again and again after another multiple clicking. I also would like to admit that I am not using trackpad, as somehow mentioned in exception, I'm using mouse.

As far as I am concerned, the problem is popular enough, there were several topics, but they all are closed without any solution.

For example: #https://github.com/flutter/flutter/issues/66887

### Code sample

Any new web project with material button an onPressed/onTap (e.g. `ElevatedButton`)

### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
======== Exception caught by gestures library ======================================================
The following assertion was thrown while handling a pointer data packet:
Assertion failed: file:///Users/Abigotado/flutter/packages/flutter/lib/src/gestures/events.dart:1551:15
!identical(kind, PointerDeviceKind.trackpad)
is not true

When the exception was thrown, this was the stack: 
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49      throw_
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3        assertFailed
../packages/flutter/src/gestures/events.dart 1551:50                                 new
../packages/flutter/src/gestures/converter.dart 126:26                               <fn>
../dart-sdk/lib/internal/iterable.dart 393:20                                        moveNext
../dart-sdk/lib/internal/iterable.dart 871:20                                        moveNext
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 831:20  next
../dart-sdk/lib/collection/queue.dart 748:14                                         addAll
../packages/flutter/src/gestures/binding.dart 291:29                                 [_handlePointerDataPacket]
../lib/_engine/engine/platform_dispatcher.dart 1251:13                               invoke1
../lib/_engine/engine/platform_dispatcher.dart 269:5                                 invokeOnPointerDataPacket
../lib/_engine/engine/pointer_binding.dart 168:39                                    [_onPointerData]
../lib/_engine/engine/pointer_binding.dart 501:14                                    [_handleWheelEvent]
../lib/_engine/engine/pointer_binding.dart 812:7                                     <fn>
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37  _checkAndCall
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39  dcall
====================================================================================================

```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4 22F66 darwin-arm64, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] IntelliJ IDEA Community Edition (version 2022.2)
[✓] VS Code (version 1.78.0)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!
```

</details>