FileModel constructor

FileModel({
  1. String fileId = '',
  2. String id = '',
  3. File? file,
  4. String name = '',
  5. String format = '',
  6. String weight = '',
  7. double sizeMb = 0,
})

Implementation

FileModel({
  this.fileId = '',
  this.id = '',
  this.file,
  String name = '',
  this.format = '',
  this.weight = '',
  this.sizeMb = 0,
}) : isLoading = false,
     name = name.isEmpty ? id : name;