getText method

Future<String> getText (
  1. SerializableFinder finder,
  2. {Duration timeout}
)

Returns the text in the Text widget located by finder.

Implementation

Future<String> getText(SerializableFinder finder, { Duration timeout }) async {
  return GetTextResult.fromJson(await _sendCommand(GetText(finder, timeout: timeout))).text;
}