FlutterDropzonePlugin class

Inheritance
  • Object
  • PlatformInterface
  • FlutterDropzonePlatform
  • FlutterDropzonePlugin

Constructors

FlutterDropzonePlugin()

Properties

events StreamController<DropzoneEvent>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildView(Map<String, dynamic> creationParams, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers, PlatformViewCreatedCallback onPlatformViewCreated) Widget
Internal function to build the platform view.
override
createFileUrl(File htmlFile, {required int viewId}) Future<String>
Create a temporary URL to the passed HTML file.
override
dispose() → void
inherited
getFileData(File htmlFile, {required int viewId}) Future<Uint8List>
Get the contents of the passed HTML file.
override
getFileLastModified(File htmlFile, {required int viewId}) Future<DateTime>
Get the last modified data of the passed HTML file.
override
getFileMIME(File htmlFile, {required int viewId}) Future<String>
Get the MIME type of the passed HTML file.
override
getFilename(File htmlFile, {required int viewId}) Future<String>
Get the filename of the passed HTML file.
override
getFileSize(File htmlFile, {required int viewId}) Future<int>
Get the size of the passed HTML file.
override
getFileStream(File htmlFile, {required int viewId}) Stream<List<int>>
Get the contents of the passed HTML file as a chunked stream.
override
init(Map<String, dynamic> params, {required int viewId}) → void
Internal function to set up the platform view.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDrop({required int viewId}) Stream<DropzoneDropEvent>
Event called when the user drops a file onto the dropzone.
inherited
onDropFile({required int viewId}) Stream<DropzoneDropFileEvent>
Event called when the user drops a file onto the dropzone.
inherited
onDropFiles({required int viewId}) Stream<DropzoneDropFilesEvent>
Event called when the user drops multiple files onto the dropzone.
inherited
onDropInvalid({required int viewId}) Stream<DropzoneDropInvalidEvent>
Event called when the user tries to drop an invalid file onto the dropzone.
inherited
onDropMultiple({required int viewId}) Stream<DropzoneDropMultipleEvent>
Event called when the user drops multiple files onto the dropzone.
inherited
onDropString({required int viewId}) Stream<DropzoneDropStringEvent>
Event called when the user drops a string onto the dropzone.
inherited
onDropStrings({required int viewId}) Stream<DropzoneDropStringsEvent>
Event called when the user drops multiple strings onto the dropzone.
inherited
onError({required int viewId}) Stream<DropzoneErrorEvent>
Event called if the dropzone view has an error.
inherited
onHover({required int viewId}) Stream<DropzoneHoverEvent>
Event called when the user hovers over a dropzone.
inherited
onLeave({required int viewId}) Stream<DropzoneLeaveEvent>
Event called when the user leaves a dropzone.
inherited
onLoaded({required int viewId}) Stream<DropzoneLoadedEvent>
Event called when the dropzone view has been loaded.
inherited
pickFiles(bool multiple, {List<String> mime = const [], required int viewId}) Future<List<File>>
Convenience function to display the browser File Open dialog.
override
releaseFileUrl(String fileUrl, {required int viewId}) Future<bool>
Release a temporary URL previously created using createFileUrl().
override
setCursor(CursorType cursor, {required int viewId}) Future<bool>
Specify the CursorType of the dropzone. CursorType is one the CSS cursor types.
override
setMIME(List<String> mime, {required int viewId}) Future<bool>
Specify the list of accepted MIME types.
override
setOperation(DragOperation operation, {required int viewId}) Future<bool>
Specify the DragOperation while dragging the file.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void