EnhancedConfig class

Presentation and behavior configuration for EnhancedPaginatedView.

This holds everything that controls how the view looks and scrolls, as opposed to EnhancedDelegate which only carries what data is shown.

Annotations

Constructors

EnhancedConfig({ScrollPhysics? physics, Widget? header, Axis scrollDirection = Axis.vertical, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, bool removeDuplicatedItems = true, EmptyWidgetConfig emptyWidgetConfig = const EmptyWidgetConfig(), LoadingConfig loadingConfig = const LoadingConfig(), ErrorLoadMoreConfig errorLoadMoreConfig = const ErrorLoadMoreConfig(), ErrorPageConfig errorPageConfig = const ErrorPageConfig()})
Creates a new instance of EnhancedConfig.
const

Properties

crossAxisAlignment → CrossAxisAlignment
The alignment of the children along the cross axis.
final
emptyWidgetConfig → EmptyWidgetConfig
The configuration for the empty widget.
final
errorLoadMoreConfig → ErrorLoadMoreConfig
The configuration for the error when loading more data.
final
errorPageConfig → ErrorPageConfig
The configuration for the error page.
final
hashCode → int
The hash code for this object.
no setteroverride
The widget to be displayed as the header of the EnhancedPaginatedView.
final
loadingConfig → LoadingConfig
The configuration for the loading state.
final
physics → ScrollPhysics?
The physics of the scrollable area.
final
removeDuplicatedItems → bool
Whether to remove duplicated items from the list of data.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection → Axis
The direction in which the list should scroll.
final

Methods

copyWith({ScrollPhysics? physics, Widget? header, Axis? scrollDirection, CrossAxisAlignment? crossAxisAlignment, bool? removeDuplicatedItems, EmptyWidgetConfig? emptyWidgetConfig, LoadingConfig? loadingConfig, ErrorLoadMoreConfig? errorLoadMoreConfig, ErrorPageConfig? errorPageConfig}) → EnhancedConfig
Creates a copy of this config with the given fields replaced.
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.
override