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

hashCode int
Provides a hash code based on value to ensure consistent behavior in maps and sets.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The full path of the current route.
final

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