filePicker<T> static method
TFormField<List<TFile> >
filePicker<T>(
- TFieldProp<
List< prop,TFile> > - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- TFilePickerTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- List<
String? Function(List< ? rules,TFile> ?)> - bool allowMultiple = false,
- List<
String> ? allowedExtensions, - TFileType fileType = TFileType.any,
Implementation
static TFormField<List<TFile>> filePicker<T>(
TFieldProp<List<TFile>> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
TFilePickerTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
List<String? Function(List<TFile>?)>? rules,
bool allowMultiple = false,
List<String>? allowedExtensions,
TFileType fileType = TFileType.any,
}) {
return TFormField<List<TFile>>(
prop: prop,
builder: (onValueChanged) => TFilePicker(
label: label,
tag: tag,
placeholder: placeholder,
helperText: helperText,
isRequired: isRequired,
disabled: disabled,
autoFocus: autoFocus,
theme: theme,
focusNode: focusNode,
onTap: onTap,
rules: rules,
allowMultiple: allowMultiple,
allowedExtensions: allowedExtensions,
fileType: fileType,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}