AppLinkParams class

Holds the configuration details required to create an AppLink.

The AppLinkParams class allows users to define how the link behaves on both Android and iOS platforms, including fallback URLs, opening behavior, and optional social metadata for link previews.

Constructors

AppLinkParams({required String url, required String name, required String urlPrefix, String? shortId, SocialMeta? socialMeta, String? androidFallbackUrl, String? iosFallbackUrl, bool? isOpenInBrowserAndroid, bool? isOpenInAndroidApp, bool? isOpenInBrowserApple, bool? isOpenInIosApp})
Creates an AppLinkParams instance with the required and optional fields.
AppLinkParams.fromJson(Map<String, dynamic> json)
Creates an AppLinkParams instance from a JSON Map.
factory

Properties

androidFallbackUrl String?
Optional fallback URL for Android devices if the app is not installed.
final
hashCode int
The hash code for this object.
no setterinherited
iosFallbackUrl String?
Optional fallback URL for iOS devices if the app is not installed.
final
isOpenInAndroidApp bool?
Indicates whether the link should attempt to open in the Android app.
final
isOpenInBrowserAndroid bool?
Indicates whether the link should open in the browser on Android.
final
isOpenInBrowserApple bool?
Indicates whether the link should open in the browser on iOS.
final
isOpenInIosApp bool?
Indicates whether the link should attempt to open in the iOS app.
final
name String
The name or label associated with the AppLink.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortId String?
An optional custom short ID to be used as part of the short link.
final
socialMeta SocialMeta?
Optional metadata for rendering social link previews.
final
url String
The destination URL to which the AppLink should redirect.
final
urlPrefix String
The URL prefix (base domain) used to construct the full AppLink.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the AppLinkParams object into a JSON-compatible Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited