write static method

Future<void> write({
  1. required String text,
  2. Duration interval = const Duration(milliseconds: 50),
  3. bool omitInvalid = false,
})

Types the characters in the string

text: String - String to type

interval: Duration - interval between key presses

omitInvalid: bool - True to omit unsupported characters found in text, else an error is thrown.

Implementation

static Future<void> write({
  required String text,
  Duration interval = const Duration(
    milliseconds: 50,
  ),
  bool omitInvalid = false,
}) async {
  _platform.write(text: text, interval: interval, omitInvalid: omitInvalid);
}