type method
Types text into the field target, found by its hint or label.
The field is cleared first unless clear is false. submit presses
the keyboard's action button afterwards. With secret, the text is
hidden in the caption and the report.
Implementation
PlaybookStep type(
Object target,
Object? text, {
bool clear = true,
bool submit = false,
bool secret = false,
}) {
final PlaybookFinder finder = Find.target(target);
final String value = '${text ?? ''}';
final String shown = secret ? '•' * value.length : value;
return PlaybookStep(
'Type "$shown" into ${finder.description}',
(PlaybookActor actor) =>
actor.type(finder, value, clear: clear, submit: submit),
);
}