HtmlEditorFile class

Represents a file which was uploaded in the editor.

Constructors

HtmlEditorFile({required String name, int? size, String? mimeType, String? base64, int? lastModified, DateTime? lastModifiedDate})
const
HtmlEditorFile.fromJson(String source)
factory
HtmlEditorFile.fromMap(Map<String, dynamic> map)
factory

Properties

base64 String?
The base64 representation of the file.
final
hashCode int
The hash code for this object.
no setteroverride
lastModified int?
The last modified date of the file as unix timestamp.
final
lastModifiedDate DateTime?
The last modified date of the file as DateTime.
final
mimeType String?
The MIME type of the file.
final
name String
The name of the file.
final
readAsBytes Uint8List?
Decodes the base64 string and retrieve it as a Uint8List.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size of the file in bytes.
final

Methods

copyWith({String? name, int? size, String? mimeType, String? base64, int? lastModified, DateTime? lastModifiedDate}) HtmlEditorFile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant HtmlEditorFile other) bool
The equality operator.
override