TFilePicker constructor

const TFilePicker({
  1. Key? key,
  2. String? label,
  3. String? tag,
  4. String? helperText,
  5. bool isRequired = false,
  6. bool disabled = false,
  7. bool clearable = false,
  8. TFilePickerTheme? theme,
  9. VoidCallback? onTap,
  10. FocusNode? focusNode,
  11. List<TFile>? value,
  12. ValueNotifier<List<TFile>?>? valueNotifier,
  13. ValueChanged<List<TFile>?>? onValueChanged,
  14. List<String? Function(List<TFile>?)>? rules,
  15. Duration? validationDebounce,
  16. String? placeholder,
  17. bool autoFocus = false,
  18. bool allowMultiple = false,
  19. List<String>? allowedExtensions,
  20. TFileType fileType = TFileType.any,
})

Creates a file picker.

Implementation

const TFilePicker({
  super.key,
  this.label,
  this.tag,
  this.helperText,
  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,
});