SolidThemeConfig class
Configuration for theme toggle functionality.
Constructors
-
SolidThemeConfig.new({bool enabled = true, String lightModeTooltip = 'Switch to light theme', String darkModeTooltip = 'Switch to dark theme', Future<
void> onToggle()?}) -
const
Properties
- darkModeTooltip → String
-
The tooltip message for dark mode.
final
- enabled → bool
-
Whether the theme toggle is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lightModeTooltip → String
-
The tooltip message for light mode.
final
-
onToggle
→ Future<
void> Function()? -
Custom callback for theme toggle. If null, uses default behaviour.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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