asFile method

DataTransferFile? asFile()

Try getting the {@link DataTransferFile file} associated with this data transfer item.

Note that the file object is only valid for the scope of the drag and drop operation.

@returns The file for the data transfer or undefined if the item is either not a file or the file data cannot be accessed.

Implementation

_i3.DataTransferFile? asFile() => _i5.callMethod(
      this,
      'asFile',
      [],
    );