FileInfo class Null safety

Represents information about image that will be used to upload

Constructors

FileInfo.fromData({required String? name, required File? file, String? mimeType})
FileInfo.fromUrl({required String? url, String? mimeType, int? fileSize, String? name})

Properties

file File?
file data
final
fileSize int?
read / write
hasBinary bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hasSource bool
read-only
mimeType String?
mime file type
final
name String?
name of this file
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url String?
url of this file
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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