DropinityPagifyData<FullResponse, Model> class

main class to Pagify data

Constructors

DropinityPagifyData.new({required Future<FullResponse> asyncCall(BuildContext context, int page), required PagifyData<Model> mapper(FullResponse response), required PagifyErrorMapper errorMapper, required Widget itemBuilder(BuildContext context, List<Model> data, int index, Model element), required PagifyController<Model> controller, EdgeInsetsGeometry padding = const EdgeInsets.all(0), double? itemExtent, FutureOr<void> onUpdateStatus(PagifyAsyncCallStatus)?, FutureOr<void> onLoading()?, FutureOr<void> onSuccess(BuildContext, List)?, FutureOr<void> onError(BuildContext, int, PagifyException)?, bool ignoreErrorBuilderWhenErrorOccursAndListIsNotEmpty = true, bool showNoDataAlert = false, Widget? loadingBuilder, Widget errorBuilder(PagifyException)?})
constructor for DropinityPagifyData

Properties

asyncCall Future<FullResponse> Function(BuildContext context, int page)
pagify main api request comes from Pagify package
getter/setter pair
controller → PagifyController<Model>
pagify controller comes from Pagify package
final
emptyListView Widget?
custom empty list view Widget comes from Pagify package
getter/setter pair
errorBuilder Widget Function(PagifyException)?
custom error Widget comes from Pagify package
getter/setter pair
errorMapper ↔ PagifyErrorMapper
pagify error mapper comes from Pagify package
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoreErrorBuilderWhenErrorOccursAndListIsNotEmpty bool
keep current view when error bool comes from Pagify package
getter/setter pair
itemBuilder Widget Function(BuildContext context, List<Model> data, int index, Model element)
pagify item builder comes from Pagify package
getter/setter pair
itemExtent double?
item extent double to single element widget
getter/setter pair
loadingBuilder Widget?
custom loader Widget comes from Pagify package
getter/setter pair
mapper ↔ PagifyData<Model> Function(FullResponse response)
pagify mapper comes from Pagify package
getter/setter pair
noConnectionText String?
custom text when there is no internet connection String comes from Pagify package
getter/setter pair
onError FutureOr<void> Function(BuildContext, int, PagifyException)?
on error call back comes from Pagify package
getter/setter pair
onLoading FutureOr<void> Function()?
on loading call back comes from Pagify package
getter/setter pair
onSuccess FutureOr<void> Function(BuildContext, List)?
on success call back comes from Pagify package
getter/setter pair
onUpdateStatus FutureOr<void> Function(PagifyAsyncCallStatus)?
update status callback comes from Pagify package to show current state PagifyAsyncCallStatus
getter/setter pair
padding EdgeInsetsGeometry
list padding padding
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showNoDataAlert bool
show no data alert when there is no more data bool comes from Pagify package
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited