XShortcutTarget class

One donated target — a conversation, a document, whatever the app wants the OS to offer in the share sheet.

Constructors

XShortcutTarget({required String id, required String label, String? iconPath})
Binds the target's routing id to what the share sheet shows.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
iconPath → String?
Absolute path of an image to use as the icon — masked to a circle by the launcher. A missing or undecodable file falls back to the app icon.
final
id → String
Stable identifier. The share sheet hands it back as EXTRA_SHORTCUT_ID (Android) or as the donated intent's conversationIdentifier (iOS), so it should be whatever the app routes on.
final
label → String
Short, user-facing name.
final
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
toMap() → Map<String, Object?>
This target in the channel's wire shape.
toString() → String
A string representation of this object.
inherited

Operators

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