get<T> abstract method
Performs a GET request to the provided API URL and returns the response.
path
: The URL for the GET request.body
: (optional) request body.queryParameters
: (optional) The query parameters for the GET request.options
: (optional) The options to be merged with the base options.
Returns a Future that completes with the response data of type T
.
Throws a DioException if the request fails.
Implementation
Future<T> get<T>(String path,
{Object? body, Map<String, dynamic>? queryParameters, Options? options});