DeepLinkParser class

A utility class for parsing deep link URLs and extracting route and payload information.

Supports various URL formats:

  • Custom schemes: myapp://home, myapp://profile?id=123
  • Universal links: https://example.com/home, https://example.com/product/123
  • Path-based: /home, /profile?id=123

Constructors

DeepLinkParser()

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

extractDomain(String url) → String?
Extracts the domain from a URL (for universal links).
extractScheme(String url) → String?
Extracts the scheme from a URL.
normalizeRoute(String route) → String
Normalizes a route to ensure it starts with a forward slash.
parse(String url) → DeepLinkResult
Parses a deep link URL and extracts route and payload information.