RouteChangedEventModel class final
Event fired whenever the application's current route changes.
This event is intended to be used with EventChannel or any event-driven system to notify listeners that the active route has changed.
Example usage:
EventChannel.instance.on<RouteChangedEventModel>((event) {
print('Route changed to: ${event.location}');
});
Emitting the event:
EventChannel.emit(RouteChangedEventModel('/home'));
- Annotations
Constructors
- RouteChangedEventModel(String value)
-
Creates a new RouteChangedEventModel with the given
value.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a readable string representation for debugging purposes.
override
Operators
-
operator ==(
Object other) → bool -
Overrides equality operator to compare events by value.
override