get method
Future<Response>
get(
- String path, {
- Map<String, dynamic>? queryParameters,
- Options? options,
- String? baseUrl,
- CancelToken? cancelToken,
- ProgressCallback? onReceiveProgress,
})
Implementation
Future<Response> get(
String path, {
Map<String, dynamic>? queryParameters,
Options? options,
String? baseUrl,
CancelToken? cancelToken,
ProgressCallback? onReceiveProgress,
}) async {
dio = Dio()..options.baseUrl = baseUrl ?? _baseUrl;
return dio.get(
path,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress,
);
}