BaseRefreshApi<T> constructor
BaseRefreshApi<T> (
- dynamic path, {
- int page = 1,
- int pageSize = 10,
- IsEmptyList<
T> ? isEmptyList, - required String? listKey,
- required String? pageNumKey,
- required String? pageSizeKey,
- Options? opt,
- dynamic param,
- Map<
String, dynamic> ? queryParameters, - bool cache = false,
- bool isDebug = true,
- CancelToken? cancelToken,
- String method = 'POST',
- bool showToast = true,
- bool encrypt = false,
- bool showLoading = true,
- bool dismissLoading = true,
- 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();