enterText method

Future<void> enterText(
  1. dynamic target,
  2. String text, {
  3. bool pumpFrames = true,
  4. Screenshot? screenshot,
})

Implementation

Future<void> enterText(
  dynamic target,
  String text, {
  bool pumpFrames = true,
  Screenshot? screenshot,
}) async {
  var finder = targetToFinder(target);
  await tester.enterText(finder, text);
  await _pumpFramesIfNeeded(pumpFrames);
  await _screenshotIfNeeded(screenshot);
}