BaseRefreshApi<T> constructor

BaseRefreshApi<T>(
  1. dynamic path, {
  2. int page = 1,
  3. int pageSize = 10,
  4. IsEmptyList<T>? isEmptyList,
  5. required String? listKey,
  6. required String? pageNumKey,
  7. required String? pageSizeKey,
  8. Options? opt,
  9. dynamic param,
  10. Map<String, dynamic>? queryParameters,
  11. bool cache = false,
  12. bool isDebug = true,
  13. CancelToken? cancelToken,
  14. String method = 'POST',
  15. bool showToast = true,
  16. bool encrypt = false,
  17. bool showLoading = true,
  18. bool dismissLoading = true,
  19. required TransformJson<T>? serializer,
})

Implementation

BaseRefreshApi(super.path,
    {this.page = 1,
    this.pageSize = 10,
    this.isEmptyList,
    required this.listKey,
    required this.pageNumKey,
    required this.pageSizeKey,
    super.opt,
    super.param,
    super.queryParameters,
    super.cache,
    super.isDebug,
    super.cancelToken,
    super.method,
    super.showToast,
    super.encrypt,
    super.showLoading,
    super.dismissLoading,
    required super.serializer})
    : initialPage = page,
      super();