Base interface for all application events. Provides common functionality for event data handling and equality comparison.
Generic type T
represents the type of data that event carries.
All events are equatable by their data.
{@macro iEventBase}
Constructors
- IEventBase({required T? data})
-
Base interface for all application events.
Provides common functionality for event data handling and equality comparison.
const
Properties
- data → T?
-
The data associated with this event.
Can be null if event doesn't carry any data.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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.
override