ErrorPageConfig class
Represents the configuration for an error page.
An error page is displayed when there is a failure in loading data for the first page.
- Annotations
Constructors
- ErrorPageConfig({String? title, String? description, String? btnText, VoidCallback? onRetry, Widget? customButton, Widget? customView})
-
Creates a new instance of ErrorPageConfig.
const
Properties
- btnText → String?
-
The text to display on the retry button.
final
- customButton → Widget?
-
A custom widget for the retry button.
final
- customView → Widget?
-
A custom view for the error page
final
- description → String?
-
A description of the failure.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- onRetry → VoidCallback?
-
A callback 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 failure message.
final
Methods
-
copyWith(
{String? title, String? description, String? btnText, VoidCallback? onRetry, Widget? customButton, Widget? customView}) → ErrorPageConfig - 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