FilePickerModel constructor

FilePickerModel({
  1. String id = '',
  2. String? title,
  3. List<FileModel> files = const [],
  4. bool isRequired = false,
  5. int maxSizeInMb = 5,
  6. int? maxFiles,
  7. List<String> allowedExtensions = const ['jpg', 'png', 'pdf'],
  8. FileTypeEnum type = .media,
})

Implementation

FilePickerModel({
  this.id = '',
  this.title,
  this.files = const [],
  this.isRequired = false,
  this.maxSizeInMb = 5,
  this.maxFiles,
  this.allowedExtensions = const ['jpg', 'png', 'pdf'],
  this.type = .media,
}) : isLoading = false;