get method

Future<Response> get(
  1. String url, {
  2. Map<String, dynamic>? params,
})

DIO GET take url, concrete route

Implementation

Future<Response> get(String url, {Map<String, dynamic>? params}) async =>
    await dio
        .get(url, queryParameters: params)
        .then((response) => response)
        .catchError((error) {
      handleError(error, _decoder);
    });