type method Null safety

Future<void> type(
  1. String text
)

Implementation

Future<void> type(String text) async {
  await tap();

  List<int> runes = text.runes.toList();

  for (var i = 0; i < runes.length; i += 1) {
    final char = String.fromCharCode(runes[i]);

    _text += char;

    await tester.enterText(_finder, _text);
  }
}