TFilePicker constructor

const TFilePicker({
  1. Key? key,
  2. String? label,
  3. String? tag,
  4. String? helperText,
  5. String? info,
  6. bool isRequired = false,
  7. bool disabled = false,
  8. bool clearable = false,
  9. TFilePickerTheme? theme,
  10. VoidCallback? onTap,
  11. FocusNode? focusNode,
  12. List<TFile>? value,
  13. ValueNotifier<List<TFile>?>? valueNotifier,
  14. ValueChanged<List<TFile>?>? onValueChanged,
  15. List<String? Function(List<TFile>?)>? rules,
  16. Duration? validationDebounce,
  17. String? placeholder,
  18. bool autoFocus = false,
  19. bool allowMultiple = false,
  20. List<String>? allowedExtensions,
  21. TFileType fileType = TFileType.any,
  22. bool isGalleryMode = false,
  23. TFilePickerSource source = TFilePickerSource.files,
  24. double maxImageDimension = 1600,
  25. int imageQuality = 85,
  26. ValueChanged<List<TFile>>? onAdd,
  27. ValueChanged<List<TFile>>? onRemove,
})

Creates a file picker.

Implementation

const TFilePicker({
  super.key,
  this.label,
  this.tag,
  this.helperText,
  this.info,
  this.isRequired = false,
  this.disabled = false,
  this.clearable = false,
  this.theme,
  this.onTap,
  this.focusNode,
  this.value,
  this.valueNotifier,
  this.onValueChanged,
  this.rules,
  this.validationDebounce,
  this.placeholder,
  this.autoFocus = false,
  this.allowMultiple = false,
  this.allowedExtensions,
  this.fileType = TFileType.any,
  this.isGalleryMode = false,
  this.source = TFilePickerSource.files,
  this.maxImageDimension = 1600,
  this.imageQuality = 85,
  this.onAdd,
  this.onRemove,
});