TencentCloudChatRouter class
A utility class for managing the global routing table for TencentCloudChat
This class provides a singleton instance for managing the global routing table for the entire application. It enables the registration of routes and navigation between components across different package of widgets.
All widgets in the Chat UIKit should register their routes with this class to ensure consistent navigation behavior.
Constructors
- TencentCloudChatRouter()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
routeObserver
→ RouteObserver<
Route> -
A global route observer for listening to route changes.
final
-
routes
→ Map<
String, WidgetBuilder> -
A map containing the registered routes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getArgumentFromMap<
T> (BuildContext context, String key) → T? -
Retrieves an argument of type
T
from the route's argument map using the givenkey
. -
Navigates to the specified
routeName
with the givenoptions
as arguments. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerRouter(
{required String routeName, required WidgetBuilder builder}) → void -
Registers a route with the given
routeName
andbuilder
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited