DVDropEvent class
One drop.
Constructors
-
DVDropEvent({List<
String> paths = const <String>[], List<DVIncomingFile> files = const <DVIncomingFile>[], List<Uri> urls = const <Uri>[], String? text, double x = 0, double y = 0}) -
const
-
DVDropEvent.fromMap(Map<
Object?, Object?> map, {Future<List< readers(int index)?})int> > -
The shape every binding hands over:
files(maps with name, mimeType, path, uri, size), or barepaths, plusurls,text,x,y.readersreads a file the platform gave no path for, by its index.factory
Properties
-
files
→ List<
DVIncomingFile> -
The files dropped, in the order the platform sent them.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether anything was dropped. A drop carrying nothing is not a drop.
no setter
-
paths
→ List<
String> -
The filesystem paths of the files dropped, where the platform gave any.
no setter
- position → Offset
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
The text dropped, when text was dropped.
final
-
urls
→ List<
Uri> -
The links dropped.
final
- x → double
-
Where the drop landed, in logical pixels from the window's top left.
final
- y → double
-
final
Methods
-
carriesAnyOf(
Set< DVDropType> types) → bool -
Whether this drop carries anything
typesadmits. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onlyOf(
Set< DVDropType> types) → DVDropEvent -
The same drop, with what
typesdoes not admit left out. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited