LinkBuilderFactory class
The LinkBuilderFactory
class is responsible for creating link builders based on the type of the app.
It provides a getLinkBuilder
method to create a link builder for a given URL.
This method first identifies the type of the app based on the URL.
It then returns a link builder for the identified app type.
The class also provides a private _identifyAppType
method to identify the type of the app based on the URL.
This method uses a map of domain names to app types to identify the app type.
If the URL contains a domain name that matches an entry in the map, the corresponding app type is returned.
If the URL does not contain a matching domain name, an exception is thrown.
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 Methods
-
getLinkBuilder(
String url, Logger logger, DeeplinkCreator deeplinkCreator) → LinkBuilder - Returns a link builder for the given URL.