write static method
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);
}