postRequest method Null safety

dynamic postRequest(
  1. String command,
  2. [dynamic params]
)

Performs post request on command to the WebDriver server.

For use by supporting WebDriver packages.

Implementation

dynamic postRequest(String command, [params]) => _client.send(
    _handler.buildGeneralRequest(HttpMethod.httpPost, command, params),
    (response) => _handler.parseGeneralResponse(
        response, (elementId) => getElement(elementId, this)));