Open class

Open class provide open or share content to social media or system apps

Constructors

Open()

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

browser({String url = "", OpenMode mode = OpenMode.platformDefault}) Future<bool>
open content to browser
localFile({String filePath = ""}) Future<OpenResult>
open local file (Only ANDROID, IOS)
mail({String toAddress = "", String subject = "", String body = "", OpenMode mode = OpenMode.platformDefault}) Future<bool>
share content to mail
phone({String phoneNumber = "", OpenMode mode = OpenMode.platformDefault}) Future<bool>
open phone dial
whatsApp({String? whatsAppNumber, String text = "", OpenMode mode = OpenMode.externalNonBrowserApplication}) Future<bool>
share content to whatsapp