AutoFileField.file constructor

AutoFileField.file({
  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. FilePickSettings settings = const FilePickSettings(),
  10. bool showFileName = false,
})

Implementation

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