ObsEvent class abstract
A base class representing an event in an observable system.
Classes that extend ObsEvent define specific types of events that can be emitted, observed, or dispatched in reactive or event-driven architectures.
This is an abstract class and cannot be instantiated directly. Subclasses should provide additional context or payload relevant to the event.
Example:
class UserLoggedInEvent extends ObservableEvent {
final String userId;
const UserLoggedInEvent(this.userId);
}
// Usage
final event = UserLoggedInEvent("12345");
- Implementers
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