requestData method
Sends a string and returns a string.
This enables generic communication between the driver and the application. It's expected that the application has registered a DataHandler callback in enableFlutterDriverExtension that can successfully handle these requests.
Implementation
Future<String> requestData(String message, { Duration timeout }) async {
timeout ??= _shortTimeout(timeoutMultiplier);
return RequestDataResult.fromJson(await _sendCommand(RequestData(message, timeout: timeout))).message;
}