scribbleRemovePlaceholder method
Simulates iOS removing a UITextPlaceholder after a long press with the pencil is released.
Implementation
Future<void> scribbleRemovePlaceholder() async {
assert(isRegistered);
await TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage(
SystemChannels.textInput.name,
SystemChannels.textInput.codec.encodeMethodCall(
MethodCall('TextInputClient.removeTextPlaceholder', <dynamic>[_client ?? -1]),
),
(ByteData? data) {
/* response from framework is discarded */
},
);
}