processTextAction method

  1. @override
Future<String?> processTextAction(
  1. String id,
  2. String text,
  3. bool readOnly
)
override

On Android, the readOnly parameter might be used by the targeted activity, see: https://developer.android.com/reference/android/content/Intent#EXTRA_PROCESS_TEXT_READONLY.

Implementation

@override
/// On Android, the readOnly parameter might be used by the targeted activity, see:
/// https://developer.android.com/reference/android/content/Intent#EXTRA_PROCESS_TEXT_READONLY.
Future<String?> processTextAction(String id, String text, bool readOnly) async {
  final String? processedText = await _processTextChannel.invokeMethod(
    'ProcessText.processTextAction',
    <dynamic>[id, text, readOnly],
  ) as String?;

  return processedText;
}