FileModel class

Стандартная модель работы с файлами со следующим json:

{
  "id": "",
  "name": "",
  "format": "",
  "weight": 0,
}

Constructors

FileModel({String fileId = '', String id = '', File? file, String name = '', String format = '', String weight = '', double sizeMb = 0})
FileModel.fromMap(Map<String, dynamic> map)
factory

Properties

file → File?
Модель файла сисемы, содержащая разную метаинфу
final
fileId → String
ID файла. Строится из ряда уникальных параметров для файла '$name.$format.$size'
final
format → String
final
getId → String
no setter
getPath → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
ID удалённого файла на сервер. Необходим для формирования прямой ссылки к файлу
getter/setter pair
isLoading ↔ bool
Вспомогательное состояние загрузки файла конкретного файла в списке
getter/setter pair
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeMb → double
final
weight → String
final

Methods

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

Operators

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