FileInfo class

The file info.

Annotations

Constructors

FileInfo({File? file, Uint8List? fileBytes, String? fileUrl, String? fileName, String? mimeType, int? fileSize})
FileInfo.fromFile({required File? file, required String? fileName, required String? mimeType})
fromFile
FileInfo.fromFileBytes({required Uint8List? fileBytes, required String? fileName, required String? mimeType})
fromBytes for Web
FileInfo.fromFileUrl({required String? fileUrl, String? fileName, String? mimeType, int? fileSize})
fromFileUrl
FileInfo.fromJson(Map<String, dynamic> json)
factory

Properties

file File?
final
fileBytes Uint8List?
read / write
fileName String?
final
fileSize int?
read / write
fileUrl String?
read / write
hasBinary bool
read-only
hashCode int
The hash code for this object.
read-onlyinherited
hasSource bool
read-only
mimeType String?
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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