DevToolkitDeepLinkObserver class
Framework-agnostic deep link recorder for Flutter Dev Toolkit.
Call DevToolkitDeepLinkObserver.onLinkReceived anywhere in your app when
you receive a deep link — inside onGenerateRoute, a go_router redirect,
a uni_links stream handler, or any other routing mechanism.
Example with uni_links:
uriLinkStream.listen((uri) {
if (uri != null) {
DevToolkitDeepLinkObserver.onLinkReceived(uri.toString());
}
});
Example with go_router:
GoRouter(
redirect: (context, state) {
DevToolkitDeepLinkObserver.onLinkReceived(
state.uri.toString(),
source: 'go_router',
);
return null;
},
)
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
Static Methods
-
onLinkReceived(
String uri, {String? source}) → void -
Record
uriin the Deep Links panel.