Intent class




hashCode int
The hash code for this object.
runtimeType Type
A representation of the runtime type of the object.


addCategory(String category) → dynamic
Adds category for this intent
addFlag(int flag) → dynamic
Sets flags for intent
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
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.


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