FlutterIntent class

Constructors

FlutterIntent()

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

addCategory(String category) → dynamic
Adds category for this intent
addFlag(int flag) → dynamic
Sets flags for intent
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putExtra(String extra, dynamic data, {String? type}) → dynamic
Aims to handle type information for extra data attached encodes type information as string, passed through PlatformChannel, and finally gets unpacked in platform specific code ( Kotlin )
setAction(String action) → dynamic
Sets what action this intent is supposed to do
setData(Uri data) → dynamic
Sets data, on which intent will perform selected action
setPackage(String package) → dynamic
Explicitly sets package information using which Intent to be resolved, preventing chooser from showing up
setType(String type) → dynamic
Sets data type or mime-type
startActivity({bool createChooser = false}) Future<void>
You'll most likely use this method.
startActivityForResult({bool createChooser = false}) Future<List<String>>
When you're interested in obtaining some result from intent, then this method needs to be called. Returns a future, which will be resolved if platform call gets successful, otherwise results into error.
toString() String
A string representation of this object.
inherited

Operators

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