CoffeeFile class

Inheritance

Constructors

CoffeeFile({required int id, String? name, int? size, String? extension, String? path, File? file, bool isDefault = false})
CoffeeFile.empty({required int id})
CoffeeFile.fromJson(Map<String, dynamic> json)
factory

Properties

createdAt DateTime?
getter/setter pairinherited
extension String?
getter/setter pair
file File?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pairinherited
isDefault bool
getter/setter pair
name String?
getter/setter pair
path String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
getter/setter pair
updatedAt DateTime?
getter/setter pairinherited

Methods

downloadAndCacheFile({bool runInBackground = true}) Future<void>
Downloads and caches a file in the local filesystem.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

setDefault(String path) CoffeeFile