PlatformLinks class

What a project's iOS and Android config says about incoming links.

Read from the files on disk, not from the running app: the platform half of a deep link is decided at build time, and metro live:run deeplink can't reach it any other way.

Constructors

PlatformLinks({List<String> iosSchemes = const [], List<String> iosDomains = const [], List<String> androidSchemes = const [], List<String> androidHosts = const [], bool iosFound = false, bool androidFound = false})
Creates a PlatformLinks.
const

Properties

androidFound → bool
Whether AndroidManifest.xml was there to read.
final
androidHosts → List<String>
Hosts from the same intent filters, for App Links.
final
androidSchemes → List<String>
Schemes from the VIEW intent filters in AndroidManifest.xml.
final
hashCode → int
The hash code for this object.
no setterinherited
iosDomains → List<String>
Universal Link domains from the applinks: entitlements.
final
iosFound → bool
Whether Info.plist was there to read.
final
iosSchemes → List<String>
Custom URL schemes from CFBundleURLTypes in Info.plist.
final
isEmpty → bool
Whether either platform declares anything at all.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemes → List<String>
Every scheme either platform accepts, without duplicates.
no setter

Methods

accepts(String scheme) → bool
Whether uri's scheme is declared by either platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The --json representation.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

read(String root) → PlatformLinks
Reads the iOS and Android config of the project at root.