INNER CODE UNIT · Dart
_updateEditingState
Im-Kevin/cool_ui · lib/keyboards/keyboard_manager.dart:131
static void _updateEditingState() {
var callbackMethodCall = MethodCall("TextInputClient.updateEditingState", [
_keyboardController!.client.connectionId,
_keyboardController!.value.toJSON()
]);
WidgetsBinding.instance.defaultBinaryMessenger.handlePlatformMessage(
"flutter/textinput",
_codec.encodeMethodCall(callbackMethodCall),
(data) {});
}
static Future<ByteData?> _sendPlatformMessage(
String channel, ByteData message) {
final Completer<ByteData?> completer = Completer<ByteData?>();
ui.window.sendPlatformMessage(channel, message, (ByteData? reply) {
try {
completer.complete(reply);
} catch (exception, stack) {