FileInfo class

The file info.

Annotations
  • @JsonSerializable()

Constructors

FileInfo.new({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?
getter/setter pair
fileBytes Uint8List?
getter/setter pair
fileName String?
final
fileSize int?
getter/setter pair
fileUrl String?
getter/setter pair
hasBinary bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasSource bool
no setter
mimeType String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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