FileUpload class

The FileUpload class stores any known data about a file. This class is used as an argument in some callbacks relating to image and file insertion.

The class holds last modified information, name, size, type, and the base64 of the file.

Note that all parameters are nullable to prevent any null-exception when getting file data from JavaScript.

Constructors

FileUpload({String? base64, DateTime? lastModified, DateTime? lastModifiedDate, String? name, int? size, String? type})
FileUpload.fromJson(Map<String, dynamic> json)
Creates an instance of FileUpload from a JSON string
factory

Properties

base64 String?
The base64 string of the file.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastModified DateTime?
Last modified information in milliseconds since epoch format
getter/setter pair
lastModifiedDate DateTime?
Last modified information in regular date format
getter/setter pair
name String?
The filename
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The file size in bytes
getter/setter pair
type String?
The content-type (eg. image/jpeg) of the file
getter/setter pair

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