FlutterDropzonePlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • FlutterDropzonePlatform
Implementers

Constructors

FlutterDropzonePlatform()

Properties

events StreamController<DropzoneEvent>
final
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.
createFileUrl(dynamic htmlFile, {required int viewId}) Future<String>
Create a temporary URL to the passed HTML file.
dispose() → void
getFileData(dynamic htmlFile, {required int viewId}) Future<Uint8List>
Get the contents of the passed HTML file.
getFileLastModified(dynamic htmlFile, {required int viewId}) Future<DateTime>
Get the last modified data of the passed HTML file.
getFileMIME(dynamic htmlFile, {required int viewId}) Future<String>
Get the MIME type of the passed HTML file.
getFilename(dynamic htmlFile, {required int viewId}) Future<String>
Get the filename of the passed HTML file.
getFileSize(dynamic htmlFile, {required int viewId}) Future<int>
Get the size of the passed HTML file.
getFileStream(dynamic htmlFile, {required int viewId}) Stream<List<int>>
Get the contents of the passed HTML file as a chunked stream.
init(Map<String, dynamic> params, {required int viewId}) → void
Internal function to set up the platform view.
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.
onDropInvalid({required int viewId}) Stream<DropzoneDropInvalidEvent>
Event called when the user tries to drop an invalid file onto the dropzone.
onDropMultiple({required int viewId}) Stream<DropzoneDropMultipleEvent>
Event called when the user drops multiple files onto the dropzone.
onError({required int viewId}) Stream<DropzoneErrorEvent>
Event called if the dropzone view has an error.
onHover({required int viewId}) Stream<DropzoneHoverEvent>
Event called when the user hovers over a dropzone.
onLeave({required int viewId}) Stream<DropzoneLeaveEvent>
Event called when the user leaves a dropzone.
onLoaded({required int viewId}) Stream<DropzoneLoadedEvent>
Event called when the dropzone view has been loaded.
pickFiles(bool multiple, {List<String> mime = const [], required int viewId}) Future<List>
Convenience function to display the browser File Open dialog.
releaseFileUrl(String fileUrl, {required int viewId}) Future<bool>
Release a temporary URL previously created using createFileUrl().
setCursor(CursorType cursor, {required int viewId}) Future<bool>
Specify the CursorType of the dropzone. CursorType is one the CSS cursor types.
setMIME(List<String> mime, {required int viewId}) Future<bool>
Specify the list of accepted MIME types.
setOperation(DragOperation operation, {required int viewId}) Future<bool>
Specify the DragOperation while dragging the file.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FlutterDropzonePlatform
The default instance of FlutterDropzonePlatform to use.
getter/setter pair