EmptyWidgetSettings class
Represents settings for an empty state widget.
This class holds settings that control the appearance and content of a widget displayed when there is no data to show.
Constructors
- EmptyWidgetSettings({Widget? emptyGraphic, String? title, TextStyle? titleStyle, String message = 'Data not found!', TextStyle? messageStyle})
- Creates a new instance of EmptyWidgetSettings.
Properties
- emptyGraphic → Widget?
-
An optional graphic to display when the data is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The message to display when the data is empty.
final
- messageStyle → TextStyle?
-
The text style for the empty state message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
An optional title to display for the empty state.
final
- titleStyle → TextStyle?
-
The text style for the empty state title.
final
Methods
-
copyWith(
{Widget? emptyGraphic, String? title, TextStyle? titleStyle, String? message, TextStyle? messageStyle}) → EmptyWidgetSettings - Creates a copy of this EmptyWidgetSettings instance with optional overrides.
-
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
Static Methods
-
defaultSettings(
BuildContext context) → EmptyWidgetSettings - Provides default settings for an empty state widget.