CLTextField.filePicker constructor
CLTextField.filePicker({
- Key? key,
- required TextEditingController controller,
- required String labelText,
- GestureTapCallback? onTap,
- bool isReadOnly = false,
- bool isRequired = false,
- bool isRounded = false,
- bool isEnabled = true,
- required dynamic onFilePicked(
- File?
- List<
FormFieldValidator< ? validators,String> > - bool isCompact = false,
Implementation
factory CLTextField.filePicker({
Key? key,
required TextEditingController controller,
required String labelText,
GestureTapCallback? onTap,
bool isReadOnly = false,
bool isRequired = false,
bool isRounded = false,
bool isEnabled = true,
required Function(File?) onFilePicked,
List<FormFieldValidator<String>>? validators,
bool isCompact = false,
}) =>
CLTextField(
key: key,
controller: controller,
labelText: labelText,
onTap: onTap,
isReadOnly: isReadOnly,
isRequired: isRequired,
isRounded: isRounded,
isEnabled: isEnabled,
validators: validators,
onFilePicked: onFilePicked,
isCompact: isCompact,
);