getText method Null safety

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;
}