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 {
  return GetTextResult.fromJson(await _sendCommand(GetText(finder, timeout: timeout))).text;
}