FastThemeBlocEvent class
Represents an event for the FastThemeBloc
.
Each event type corresponds to a specific theme-related action
that can be dispatched to the FastThemeBloc
.
- Inheritance
-
- Object
- BlocEvent<
FastThemeBlocEventType, ThemeMode> - FastThemeBlocEvent
Constructors
- FastThemeBlocEvent.new({required FastThemeBlocEventType type, ThemeMode? payload})
-
Creates a new theme event.
const
- FastThemeBlocEvent.dark()
-
Represents an event to switch to the dark theme.
const
- FastThemeBlocEvent.init(ThemeMode mode)
-
Represents the initialization event with a given
mode
.const - FastThemeBlocEvent.initialized()
-
Represents an event indicating that the theme has been initialized.
const
- FastThemeBlocEvent.light()
-
Represents an event to switch to the light theme.
const
- FastThemeBlocEvent.system()
-
Represents an event to switch to the system's theme.
const
Properties
- error → Object?
-
The error of the event.
finalinherited
- forceBuild → bool
-
Indicates whether the bloc builder can force rendering.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- payload → ThemeMode?
-
The payload of the event.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → FastThemeBlocEventType?
-
The type of the event.
finalinherited
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