get<T> method
get
Future<Response> getCode() {
return httpServer.get("/login/v1/xxx");
}
Implementation
Future<Response<T>> get<T>(
String path, {
Map<String, dynamic>? queryParameters,
Options? options,
CancelToken? cancelToken,
ProgressCallback? onReceiveProgress,
}) async {
Response<T> response = await _dio.get(path,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress);
return response;
}