get static method
Future
get(
- bool isDefault,
- String path, {
- dynamic data,
- Map<String, dynamic>? params,
- Options? options,
- CancelToken? cancelToken,
- bool refresh = false,
- bool noCache = !BaseHttpConstant.CACHE_ENABLE,
- String? cacheKey,
- bool cacheDisk = false,
})
Implementation
static Future get(
bool isDefault,
String path, {
data,
Map<String, dynamic>? params,
Options? options,
CancelToken? cancelToken,
bool refresh = false,
bool noCache = !BaseHttpConstant.CACHE_ENABLE,
String? cacheKey,
bool cacheDisk = false,
}) async {
isDefault ? HttpManager().defaultOptions() : HttpManager().smartHomeOptions();
return await HttpManager().get(
path,
params: params,
data: data,
options: options,
cancelToken: cancelToken,
refresh: refresh,
noCache: noCache,
cacheKey: cacheKey,
);
}