getText method

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

Returns the text in the Text widget located by finder.

Implementation

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