RhFilePicker.single constructor

const RhFilePicker.single({
  1. Key? key,
  2. Widget? removeIcon,
  3. Widget? uploadIcon,
  4. dynamic onPick(
    1. List<File?>
    )?,
  5. FileType? fileType = FileType.any,
  6. List<String>? allowedExtensions,
  7. Color? backgroundColor,
  8. PickedItemDecoration? pickedItemDecoration,
  9. Widget? title,
  10. Widget? subtitle,
  11. required Source? source,
})

Implementation

const RhFilePicker.single({
  super.key,
  this.removeIcon,
  this.uploadIcon,
  this.onPick,
  this.fileType = FileType.any,
  this.allowedExtensions,
  this.backgroundColor,
  this.pickedItemDecoration,
  this.title,
  this.subtitle,
  required this.source,
})  : type = PickerType.single,
      children = const [],
      selectedFiles = null,
      singleItemDecoration = null,
      margin = null,
      headerText = null,
      addMore = null,
      showSelected = null;