get method

ResultActions get(
  1. String path, {
  2. Map<String, String> headers = const {},
  3. Map<String, Object> params = const {},
})

Sends a GET to path with headers and query params; a List value sends the parameter several times ({'id': [1, 2]}).

Implementation

ResultActions get(
  String path, {
  Map<String, String> headers = const {},
  Map<String, Object> params = const {},
}) => perform(
  MockRequestBuilder(HttpMethod.get, path)
    ..headers.addAll(headers)
    ..params.addAll(params),
);