ErrorLoadMoreConfig class
Represents the configuration for handling error while loading more data.
Use this class to customize the error message, button text, retry function, and custom button widget when an error occurs while loading more data.
- Annotations
Constructors
- ErrorLoadMoreConfig({String? title, String? btnText, void onRetry(int page)?, Widget? customButton})
-
Creates an instance of ErrorLoadMoreConfig.
const
Properties
- btnText → String?
-
The text to be displayed on the retry button.
final
- customButton → Widget?
-
A custom button widget to be displayed instead of the default retry button.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- onRetry → void Function(int page)?
-
The function to be called when the retry button is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The title of the error message.
final
Methods
-
copyWith(
{String? title, String? btnText, void onRetry(int page)?, Widget? customButton}) → ErrorLoadMoreConfig - 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