enterText method

Future<void> enterText({
  1. required String text,
  2. String? name,
  3. String? className,
  4. int? index,
})

Enters text into the native UI element matching the given criteria.

Implementation

Future<void> enterText({
  required String text,
  String? name,
  String? className,
  int? index,
}) async {
  config.logger('enterText(text: $text, name: $name)');
  await _channel.invokeMethod<void>('enterText', {
    'text': text,
    'name': ?name,
    'className': ?className,
    'index': ?index,
    'timeoutMs': config.findTimeout.inMilliseconds,
  });
}