DragItem class
Represent single item being dragged in a DragSession.
Properties
-
data
→ List<
FutureOr< EncodedData> > -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- localData → Object?
-
Data associated with this drag item that can be only read when dropping
within same application. The data must be serializable with
StandardMessageCodec. It is possible to read localData from
one isolate in another isolate.
final
- onDisposed → Listenable
-
Called when the native code is done with the item and the data is
no longer needed. Only guaranteed to be called if onRegistered has
been called before.
no setterinherited
- onRegistered → Listenable
-
Invoked when the item is successfully registered with native code.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suggestedName → String?
-
File name suggestion for the client receiving this data item.
finalinherited
- virtualFileSupported → bool
-
no setter
Methods
-
add(
FutureOr< EncodedData> data) → void -
Adds representation to the data item. On item can contain multiple
representations, each in a different format. Representation should
be added by priority (highest fidelity content first), as some
platforms respect the order.
inherited
-
addVirtualFile(
{required FileFormat format, required VirtualFileProvider provider, VirtualFileStorage? storageSuggestion}) → void -
Adds a virtual file to this data item. Virtual files are files generated
on demand, possibly taking long time to complete (i.e. downloading from
internet).
inherited
-
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