BaseEventI class abstract
Base interface for BLoC events
All events in the BLoC pattern should extend this interface to ensure consistency and type safety across the application.
Usage:
class FetchDataEvent extends BaseEventI {
const FetchDataEvent();
}
class UpdateDataEvent extends BaseEventI {
final String data;
const UpdateDataEvent(this.data);
}
Constructors
- BaseEventI()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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