EventBase class abstract
Abstract base class for all events in JuiceBloc.
Events represent user actions or system triggers that cause state changes. Each event should be handled by a corresponding use case registered with the bloc.
Creating Events
class IncrementEvent extends EventBase {}
class SetCountEvent extends EventBase {
final int value;
SetCountEvent(this.value);
}
Rebuild Groups
Events can specify which widget groups should rebuild:
class UpdateHeaderEvent extends EventBase {
UpdateHeaderEvent() : super(groupsToRebuild: {'header'});
}
- Implementers
Constructors
Properties
-
groupsToRebuild
↔ Set<
String> ? -
The set of widget rebuild groups this event should trigger.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Called when the event is disposed.
-
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