AutoFileField constructor

AutoFileField({
  1. Key? key,
  2. required String id,
  3. required String label,
  4. bool enabled = true,
  5. bool hidden = false,
  6. List<FieldValidation> validations = const [],
  7. List<FieldTrigger> triggers = const [],
  8. String initValue = "",
  9. List<FileSource> fileSource = const [FileSource.gallery, FileSource.camera, FileSource.files],
  10. FilePickSettings settings = const FilePickSettings(),
  11. bool showFileName = false,
})

Implementation

AutoFileField({
  super.key,
  required super.id,
  required super.label,
  super.enabled = true,
  super.hidden = false,
  super.validations = const [],
  super.triggers = const [],
  super.initValue,
  this.fileSource = const [
    FileSource.gallery,
    FileSource.camera,
    FileSource.files
  ],
  this.settings = const FilePickSettings(),
  this.showFileName = false,
});