BloomDeepLinks class
Cross-platform deep linking and Universal / App Links controller.
Handles cold-start deep links (when the application is launched from a link),
runtime background/foreground incoming links, and automated routing via BloomRouter.
Example:
await BloomDeepLinks.initialize(
routeMappings: {'/invite': '/auth/register'},
onLink: (uri) => print('Deep link: $uri'),
);
Constructors
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 Properties
- pendingInitialUri → Uri?
-
Pending cold-start URI waiting for router creation and mounting.
no setter
Static Methods
-
dispatch(
Uri uri) → void -
Resolves and navigates a deep link
uriimmediately or invokes the custom handler. -
dispose(
) → void - Disposes and cancels active runtime deep link subscriptions.
-
drainPending(
) → void - Drains and navigates any pending cold-start deep link buffered before the router was mounted.
-
initialize(
{DeepLinkHandler? onLink, Map< String, String> routeMappings = const {}}) → Future<void> - Initializes deep link listening across cold-start and runtime event channels.