get static method

Future get(
  1. bool isDefault,
  2. String path, {
  3. dynamic data,
  4. Map<String, dynamic>? params,
  5. Options? options,
  6. CancelToken? cancelToken,
  7. bool refresh = false,
  8. bool noCache = !BaseHttpConstant.CACHE_ENABLE,
  9. String? cacheKey,
  10. 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,
  );
}