getSelectedText method

Future<String?> getSelectedText()

Gets the selected text.

NOTE: This method is implemented with using JavaScript.

NOTE for Android: available only on Android 19+.

Implementation

Future<String?> getSelectedText() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await _channel.invokeMethod('getSelectedText', args);
}