CLTextField.filePicker constructor

CLTextField.filePicker({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String labelText,
  4. GestureTapCallback? onTap,
  5. bool isReadOnly = false,
  6. bool isRequired = false,
  7. bool isRounded = false,
  8. bool isEnabled = true,
  9. required dynamic onFilePicked(
    1. File?
    ),
  10. List<FormFieldValidator<String>>? validators,
  11. 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,
    );