DropOffer class
Synchronous drag offer metadata inspected during target selection
(desktop_drop 0.9.2 parity).
- Annotations
Constructors
-
DropOffer({required List<
DropItemPreview> items, bool isComplete = true, Set<DropOperation> allowedOperations = const <DropOperation>{DropOperation.copy}}) - Creates an unmodifiable DropOffer.
-
DropOffer.fromMap(Map<
Object?, Object?> map) -
Deserializes a DropOffer from a native platform map.
factory
Properties
-
allowedOperations
→ Set<
DropOperation> -
Operations permitted by the drag source.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
Whether all item kinds and paths are already resolved during hover.
final
-
items
→ List<
DropItemPreview> -
Preview representations offered by the drag source.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited