ImagePickerWidget constructor

const ImagePickerWidget({
  1. Key? key,
  2. required List<SelectedFile> value,
  3. required List<ImagePickerMode> modes,
  4. bool enabled = true,
  5. required ValueChanged<List<SelectedFile>> onChanged,
  6. required InputDecoration decoration,
  7. SelectedFileViewBuilder? selectedFileViewBuilder,
  8. SelectedValueBuilder? selectedValueBuilder,
  9. InputButtonBuilder? inputBuilder,
  10. Widget? editIcon,
  11. Widget? deleteIcon,
  12. DeleteDialogBuilder? deleteDialogBuilder,
  13. PreprocessPickerError? processPickerError,
  14. PopupDialogBuilder? popupDialogBuilder,
  15. OnBeforeChangeCallback? onBeforeChange,
  16. double? maxWidth,
  17. double? maxHeight,
  18. int? imageQuality,
  19. CameraDevice preferredCameraDevice = CameraDevice.rear,
  20. Duration? maxDuration,
  21. bool requestFullMetadata = true,
  22. Future<void> onBeforePick()?,
  23. Future<void> onAfterPick()?,
  24. SelectedImageBuilder? selectedImageBuilder,
  25. SelectedVideoBuilder? selectedVideoBuilder,
})

Implementation

const ImagePickerWidget({
  Key? key,
  required this.value,
  required this.modes,
  this.enabled = true,
  required this.onChanged,
  required this.decoration,
  this.selectedFileViewBuilder,
  this.selectedValueBuilder,
  this.inputBuilder,
  this.editIcon,
  this.deleteIcon,
  this.deleteDialogBuilder,
  this.processPickerError,
  this.popupDialogBuilder,
  this.onBeforeChange,
  this.maxWidth,
  this.maxHeight,
  this.imageQuality,
  this.preferredCameraDevice = CameraDevice.rear,
  this.maxDuration,
  this.requestFullMetadata = true,
  this.onBeforePick,
  this.onAfterPick,
  this.selectedImageBuilder,
  this.selectedVideoBuilder,
}) : super(key: key);