Launcher class

Opens external links: https, mailto, tel, sms, whatsapp, ...

Constructors

Launcher()

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

onFailure ↔ void Function()?
Called when the device cannot open a link, so the app owns the wording.
getter/setter pair
repeatDelay ↔ Duration
How long after a link opened further calls are still ignored. Android answers once the intent starts, before the other app shows, so a quick second tap would open it again.
getter/setter pair

Static Methods

call(String number) → Future<bool>
email(String address) → Future<bool>
open(String url) → Future<bool>
Opens url. Calls while a link is opening, or within repeatDelay after, are ignored and get the same result.
sms(String number) → Future<bool>