CardSettingsFilePicker constructor

CardSettingsFilePicker({
  1. Key? key,
  2. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  3. FormFieldSetter<Uint8List>? onSaved,
  4. FormFieldValidator<Uint8List>? validator,
  5. Uint8List? initialValue,
  6. bool visible = true,
  7. String label = 'File',
  8. bool enabled = true,
  9. String? unattachDialogTitle,
  10. String unattachDialogCancel = 'Cancel',
  11. String unattachDialogConfirm = 'Unattach',
  12. ValueChanged<Uint8List?>? onChanged,
  13. TextAlign? contentAlign,
  14. double maxThumbnailWidth = 180,
  15. double maxThumbnailHeight = 180,
  16. Icon? icon,
  17. TextAlign? labelAlign,
  18. double? labelWidth,
  19. Widget? requiredIndicator,
  20. TextStyle? style,
  21. bool? showMaterialonIOS,
  22. EdgeInsetsGeometry? fieldPadding,
  23. FileType? fileType,
  24. List<String>? allowedExtensions,
})

Implementation

CardSettingsFilePicker({
  Key? key,
  // bool autovalidate: false,
  AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
  FormFieldSetter<Uint8List>? onSaved,
  FormFieldValidator<Uint8List>? validator,
  Uint8List? initialValue,
  this.visible = true,
  this.label = 'File',
  this.enabled = true,
  String? unattachDialogTitle,
  this.unattachDialogCancel = 'Cancel',
  this.unattachDialogConfirm = 'Unattach',
  this.onChanged,
  this.contentAlign,
  this.maxThumbnailWidth = 180,
  this.maxThumbnailHeight = 180,
  this.icon,
  this.labelAlign,
  this.labelWidth,
  this.requiredIndicator,
  this.style,
  this.showMaterialonIOS,
  this.fieldPadding,
  this.fileType,
  this.allowedExtensions,
})  : unattachDialogTitle = unattachDialogTitle ?? 'Unattach ' + label + "?",
      super(
          key: key,
          initialValue: initialValue,
          onSaved: onSaved,
          validator: validator,
          // autovalidate: autovalidate,
          autovalidateMode: autovalidateMode,
          builder: (FormFieldState<Uint8List> field) =>
              (field as _CardSettingsFilePickerState)._build(field.context));