Repository: flutter
Issue: Flutter 3.10.4 error on Apple Pencil double tap 
Labels: c: crash,platform-ios,framework,f: gestures,P2,team-ios,triaged-ios

### 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

1. Copy sample code
2. Double tap Apple Pencil
3. Observe error

### Expected results

No error

### Actual results

Gestures produces error

### Code sample

<details><summary>Code sample</summary>

```dart

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  TextEditingController _controller = TextEditingController();

  @override
  void initState() {
    super.initState();

    _controller.text = """HELLO""";
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Container(
          height: 600,
          width: 600,
          color: Colors.yellowAccent,
          child: TextField(
            scrollPhysics: const NeverScrollableScrollPhysics(),
            scrollPadding: EdgeInsets.zero,
            controller: _controller,
            keyboardType: TextInputType.multiline,
            decoration: null,
            maxLines: null,
            enabled: true,
            onChanged: (t) {},
            readOnly: false,
            clipBehavior: Clip.none,
          ),
        ),
      ),
    );
  }
}

```

</details>


### 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 StateError was thrown while handling a pointer data packet:
Bad state: Unreachable

When the exception was thrown, this was the stack: 
#0      PointerEventConverter.expand.<anonymous closure> (package:flutter/src/gestures/converter.dart:282:15)
#1      MappedIterator.moveNext (dart:_internal/iterable.dart:393:20)
#2      WhereTypeIterator.moveNext (dart:_internal/iterable.dart:871:20)
#3      ListQueue.addAll (dart:collection/queue.dart:748:25)
#4      GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:291:29)
#5      _invoke1 (dart:ui/hooks.dart:158:13)
#6      PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:382:7)
#7      _dispatchPointerDataPacket (dart:ui/hooks.dart:91:31)
====================================================================================================

```

</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.4, on macOS 13.2.1 22D68 darwin-arm64, locale en-NZ)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1)
[✓] VS Code (version 1.79.0)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 2 categories.

```

</details>