finishScribbleInteraction method

Future<void> finishScribbleInteraction()

Simulates a scribble interaction finishing.

Implementation

Future<void> finishScribbleInteraction() async {
  assert(isRegistered);
  await TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage(
    SystemChannels.textInput.name,
    SystemChannels.textInput.codec.encodeMethodCall(
      MethodCall(
        'TextInputClient.scribbleInteractionFinished',
         <dynamic>[_client ?? -1,]
      ),
    ),
    (ByteData? data) { /* response from framework is discarded */ },
  );
}