text:
[macOS][desktop] keyboard Input doesn't work anymore when entering text during hot restart

Description
So I was trying to reproduce https://github.com/flutter/flutter/issues/89729. That issue throws  KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. and followed by a bunch of other exceptions but the key issue (no pun intended) is that when we hot restart and enter text, the keyboard input stops working and the errors are thrown.
Now coming to macOS, not only are error messages different than Linux but the main difference is how it reproduces, simply a hot restart is not enough, the issue gets introduced when you try to enter text during hot restart before the hot restart is finished processing. if we hot restart, let it complete, the error is not introduced, while Linux desktop keyboard input stops working even if you wait after the hot restart, and of course, error messages are different than macOS.
macOS (first hot restart and wait for hot restart to finish then enter text -> no issue)
https://user-images.githubusercontent.com/48603081/132688729-d24c00c8-a608-42a6-b8aa-d486ef539cf0.mov
macOS (first hot restart and quickly try to enter text before hot restart is completed (repeat it few times)-> issues gets introduced and input stops working)
https://user-images.githubusercontent.com/48603081/132689808-27ffa8ab-66a8-4937-b9bf-620f8662ab28.mov
Reproducible code sample

complete minimal runnable code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: TextField(
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {},
      ),
    );
  }
}

Logs

logs
[        ] Synced 27.4MB.
[        ] <- accept
[ +537 ms] Hot restart performed in 706ms.
[   +1 ms] Performing hot restart... (completed in 707ms)
[        ] Restarted application in 719ms.
[+2192 ms] Skipping target: gen_localizations
[        ] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[   +8 ms] Scanned through 525 files in 7ms
[        ] Syncing files to device macOS...
[        ] <- reset
[   +1 ms] Compiling dart to kernel with 0 updated files
[   +3 ms] <- recompile package:triage/main.dart
7d51f002-1995-41db-aab4-6c597b4f4c87
[        ] <- 7d51f002-1995-41db-aab4-6c597b4f4c87
[  +93 ms] Updating files.
[  +60 ms] DevFS: Sync finished
[        ] Syncing files to device macOS... (completed in 159ms)
[        ] Synced 27.4MB.
[        ] <- accept
[ +552 ms] Hot restart performed in 721ms.
[   +1 ms] Performing hot restart... (completed in 723ms)
[        ] Restarted application in 727ms.
[+2412 ms] Skipping target: gen_localizations
[   +2 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[        ] complete
[        ] Performing hot restart...
[  +13 ms] Scanned through 525 files in 12ms
[        ] Syncing files to device macOS...
[        ] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:triage/main.dart
700ac3c1-e9dc-43f7-baaa-c904f675abe9
[        ] <- 700ac3c1-e9dc-43f7-baaa-c904f675abe9
[ +118 ms] Updating files.
[  +81 ms] DevFS: Sync finished
[        ] Syncing files to device macOS... (completed in 202ms)
[        ] Synced 27.4MB.
[        ] <- accept
[ +545 ms] Hot restart performed in 761ms.
[        ] Performing hot restart... (completed in 762ms)
[        ] Restarted application in 768ms.
[ +363 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[+1076 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[ +144 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[   +3 ms] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[   +1 ms] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[   +5 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[   +5 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +67 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +30 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +79 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[   +1 ms] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[   +1 ms] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[   +1 ms] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[ +117 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +20 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +71 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +73 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +74 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +56 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +96 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[   +1 ms] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +50 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +93 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +56 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +59 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +85 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +65 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +68 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +93 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[ +141 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[        ] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +57 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +61 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[ +104 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +65 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +65 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +2 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[   +1 ms] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[   +1 ms] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[   +1 ms] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[   +1 ms] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +53 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +73 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +71 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +89 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[   +1 ms] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +81 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[ +101 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +57 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +83 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +55 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +97 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +32 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +85 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +2 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +68 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[   +1 ms] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +52 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[        ] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[   +2 ms] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[   +1 ms] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[   +1 ms] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
[  +73 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line
787 pos 16: 'false': Should never encounter KeyData when transitMode is
rawKeyData.
[   +1 ms] #0      _AssertionError._doThrowNew
(dart:core-patch/errors_patch.dart:46:39)
[        ] #1      _AssertionError._throwNew
(dart:core-patch/errors_patch.dart:36:5)
[        ] #2      KeyEventManager.handleKeyData
(package:flutter/src/services/hardware_keyboard.dart:787:16)
[        ] #3      PlatformDispatcher._dispatchKeyData.<anonymous closure>
(dart:ui/platform_dispatcher.dart:375:61)
[        ] #4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
[        ] #5      _rootRun (dart:async/zone.dart:1428:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1328:19)
[        ] #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
[        ] #8      _invoke2 (dart:ui/hooks.dart:204:10)
[        ] #9      PlatformDispatcher._dispatchKeyData
(dart:ui/platform_dispatcher.dart:373:5)
[        ] #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

stable
master

❗
❗

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.0, on macOS 12.0 21A5506j darwin-x64, locale en-GB)
    • Flutter version 2.5.0 at /Users/tahatesser/Code/flutter_stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (31 hours ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (3 available)
    • IN2011 (mobile) • c9d8ee0c • android-arm64  • Android 11 (API 30)
    • macOS (desktop) • macos    • darwin-x64     • macOS 12.0 21A5506j darwin-x64
    • Chrome (web)    • chrome   • web-javascript • Google Chrome 93.0.4577.63

• No issues found!

[✓] Flutter (Channel master, 2.6.0-1.0.pre.219, on macOS 12.0 21A5506j darwin-x64, locale en-GB)
    • Flutter version 2.6.0-1.0.pre.219 at /Users/tahatesser/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 58944e6b88 (10 hours ago), 2021-09-08 19:37:34 -0700
    • Engine revision 6a3b04632b
    • Dart version 2.15.0 (build 2.15.0-82.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7621141/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (3 available)
    • IN2011 (mobile) • c9d8ee0c • android-arm64  • Android 11 (API 30)
    • macOS (desktop) • macos    • darwin-x64     • macOS 12.0 21A5506j darwin-x64
    • Chrome (web)    • chrome   • web-javascript • Google Chrome 93.0.4577.63

• No issues found!

✅: No Issue ❗: Issue reproduced

@maheshmnj
Even TextField is not required, just try to press keys in the app without any TextField during hot restart, errors are thrown. But TextField makes it more clear that input stopped working as the issue is introduced
https://user-images.githubusercontent.com/48603081/132691736-7cb9804d-5e41-488d-b9a5-38f3e020de57.mov

@TahaTesser Thanks for filing the issue, I am able to reproduce the issue on the latest stable and the master channel. When the exception is thrown the input Physical keyboard inputs are not recorded However delete key works.
https://user-images.githubusercontent.com/31410839/132693058-098ca126-5c0f-44f7-a001-e59d65c5d894.mov

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-arm,
    locale en-GB)
    • Flutter version 2.5.0 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (31 hours ago), 2021-09-07 23:01:49
      -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version
    31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google
      Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.59.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 11.5.2 20G95
      darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome
      93.0.4577.63

• No issues found!

[✓] Flutter (Channel master, 2.6.0-1.0.pre.103, on macOS 11.5.2 20G95
    darwin-arm, locale en-GB)
    • Flutter version 2.6.0-1.0.pre.103 at
      /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2c30b252a5 (12 days ago), 2021-08-27 23:26:03
      -0400
    • Engine revision ca52647cd2
    • Dart version 2.15.0 (build 2.15.0-65.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version
    31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.5.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google
      Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.59.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 11.5.2 20G95
      darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome
      93.0.4577.63

• No issues found!

logs
mahesh@Maheshs-Air-M1 counter_app % flutter run
Multiple devices found:
macOS (desktop) • macos  • darwin-arm64   • macOS 11.5.2 20G95 darwin-arm
Chrome (web)    • chrome • web-javascript • Google Chrome 93.0.4577.63
[1]: macOS (macos)
[2]: Chrome (chrome)
Please choose one (To quit, press "q/Q"): 1
Running "flutter pub get" in counter_app...                      2,448ms
Launching lib/main.dart on macOS in debug mode...
Running pod install...                                           1,394ms
Building macOS application...
Syncing files to device macOS...                                   125ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on macOS is available at:
http://127.0.0.1:57583/5E7pT-nZhgg=/
The Flutter DevTools debugger and profiler on macOS is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:57583/5E7pT-nZhgg=/

Performing hot restart...
Restarted application in 349ms.

Performing hot restart...
Restarted application in 303ms.

Performing hot restart...
Restarted application in 316ms.

Semantics not collected.

Performing hot restart...
Restarted application in 351ms.

Semantics not collected.

Performing hot restart...
Restarted application in 253ms.

Performing hot restart...
Restarted application in 346ms.

Performing hot restart...
Restarted application in 342ms.

Performing hot restart...
Restarted application in 540ms.

Performing hot restart...
Restarted application in 1,185ms.
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

Semantics not collected.
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

Semantics not collected.

Semantics not collected.
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:205:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:204:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:104:31)

cc @dkwingsmt

FWIW, I've taken a look at the following assert I'm getting regularly while pressing some keys during hot restart:

'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 788 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 788 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
package:flutter/…/services/hardware_keyboard.dart:1
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:47:61)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      KeyEventManager.handleKeyData
package:flutter/…/services/hardware_keyboard.dart:788
#3      PlatformDispatcher._dispatchKeyData.<anonymous closure> (dart:ui/platform_dispatcher.dart:375:61)
#4      _invoke2.<anonymous closure> (dart:ui/hooks.dart:189:15)
#5      _rootRun (dart:async/zone.dart:1428:13)
#6      _CustomZone.run (dart:async/zone.dart:1328:19)
#7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#8      _invoke2 (dart:ui/hooks.dart:188:10)
#9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
#10     _dispatchKeyData (dart:ui/hooks.dart:93:31)

This is on: Flutter (Channel master, 2.6.0-12.0.pre.557, on macOS 11.6 20G165 darwin-x64, locale en-GB)
The state the handleKeyData() method isn't fond of finding is set here:
  Future<Map<String, dynamic>> handleRawKeyMessage(dynamic message) async {
    if (_transitMode == null) {
      _transitMode = KeyDataTransitMode.rawKeyData;

With some print()s:
Restarted application in 1,491ms.
flutter: handleRawKeyMessage({keymap: macos, modifiers: 0, type: keyup, keyCode: 55}) _transitMode=null _keyEventsSinceLastMessage=[]
flutter: handleKeyData(KeyData(key down, physical: 0x700e3, logical: 0x200000106 (Flutter), character: <none>)) _transitMode=KeyDataTransitMode.rawKeyData _keyEventsSinceLastMessage=[]
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 788 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData.
package:flutter/…/services/hardware_keyboard.dart:1

@dkwingsmt are you actively working on item 3 in the above list?

It is next on my queue, hopefully starting tomorrow.

Update: The issue is partially fixed by https://github.com/flutter/engine/pull/29638.
Now the buffer will hold 1 event, but will still crash if there are multiple events during the hot restart. Due to the initial pause time of repeated key events, this usually means holding multiple keys during the hot restart. There's an existing mechanism to resize the buffer, but I haven't found a way to invoke it yet. I'll explore it as the next step.

Reopening it since it's not completely fixed yet (resize buffer).

Had this issue today in a macOS app. I just opened it, started writing in TextField and nothing happened. Many errors in console:
======== Exception caught by services library ======================================================
The following assertion was thrown during a platform message callback:
A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event: KeyUpEvent#17f3f(physicalKey: PhysicalKeyboardKey#70039(usbHidUsage: "0x00070039", debugName: "Caps Lock"), logicalKey: LogicalKeyboardKey#00104(keyId: "0x100000104", keyLabel: "Caps Lock", debugName: "Caps Lock"), character: null, timeStamp: 0:53:08.190261, synthesized)
'package:flutter/src/services/hardware_keyboard.dart':
Failed assertion: line 441 pos 16: '_pressedKeys.containsKey(event.physicalKey)'

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      HardwareKeyboard._assertEventIsRegular.<anonymous closure> (package:flutter/src/services/hardware_keyboard.dart:441:16)
#3      HardwareKeyboard._assertEventIsRegular (package:flutter/src/services/hardware_keyboard.dart:452:6)
#4      HardwareKeyboard.handleKeyEvent (package:flutter/src/services/hardware_keyboard.dart:544:5)
#5      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:821:35)
#6      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:77:49)
#7      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:76:47)
#8      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:389:35)
#9      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:386:46)
#10     _invoke2.<anonymous closure> (dart:ui/hooks.dart:190:15)
#14     _invoke2 (dart:ui/hooks.dart:189:10)
#15     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
#16     _Channel.push (dart:ui/channel_buffers.dart:132:31)
#17     ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
#18     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:583:22)
#19     _dispatchPlatformMessage (dart:ui/hooks.dart:89:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

➜ flutter doctor -v
[✓] Flutter (Channel beta, 2.9.0-0.1.pre, on macOS 11.4 20F71 darwin-x64, locale
    en-BR)
    • Flutter version 2.9.0-0.1.pre at /usr/local/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8f1f9c10f0 (4 weeks ago), 2021-12-14 13:41:48 -0800
    • Engine revision 234aca678a
    • Dart version 2.16.0 (build 2.16.0-80.1.beta)
    • DevTools version 2.9.1

Hi , we use LINUX , I have tried to run the app FROM COMMAND LINE ( need to use XDG_DATA_HOME ) , keep getting this error , basically the keyboard is disabled .
Same app,  if run by double click , it works without any error ( when running the executable directly or  by bash script ( "Run in terminal" or "Run" ) ) .
Maybe there is an assumption that the application window should be active when the app starts ? / similar stuff . Why would it ?
And afterwards cannot receive keyboard anymore ?
Certainly has something with running the app from command line . And I suspect it happens on Mac as well if run by command line .
My app is huge , cannot post , by I think ANY app with keyboard usage will reproduce .
exception: 'package:flutter/src/services/hardware_keyboard.dart': Failed assertion: line 787 pos 16: 'false': Should never encounter KeyData when transitMode is rawKeyData., stackTrace: #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
flutter: ⚠ #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
flutter: ⚠ #2      KeyEventManager.handleKeyData (package:flutter/src/services/hardware_keyboard.dart:787:16)
flutter: ⚠ #3      PlatformDispatcher._dispatchKeyData. (dart:ui/platform_dispatcher.dart:375:61)
flutter: ⚠ #4      _invoke2. (dart:ui/hooks.dart:205:15)
flutter: ⚠ #5      _rootRun (dart:async/zone.dart:1428:13)
flutter: ⚠ #6      _CustomZone.run (dart:async/zone.dart:1328:19)
flutter: ⚠ #7      _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
flutter: ⚠ #8      _invoke2 (dart:ui/hooks.dart:204:10)
flutter: ⚠ #9      PlatformDispatcher._dispatchKeyData (dart:ui/platform_dispatcher.dart:373:5)
flutter: ⚠ #10     _dispatchKeyData (dart:ui/hooks.dart:104:31)
Flutter 2.5.3

@valycozma You error does not seem related to this issue, and while I appreciate you reporting the problem, next time please open a new issue.
Specifically, your problem should have been fixed in the latest version. 2.5.3 is fairly old.

authors: TahaTesser bernaferrari cbracken dkwingsmt gspencergoog maheshmnj tgucio valycozma