ImagePickerWidget constructor
const
ImagePickerWidget({
- Key? key,
- required List<
SelectedFile> value, - required List<
ImagePickerMode> modes, - bool enabled = true,
- required ValueChanged<
List< onChanged,SelectedFile> > - required InputDecoration decoration,
- SelectedFileViewBuilder? selectedFileViewBuilder,
- SelectedValueBuilder? selectedValueBuilder,
- InputButtonBuilder? inputBuilder,
- Widget? editIcon,
- Widget? deleteIcon,
- DeleteDialogBuilder? deleteDialogBuilder,
- PreprocessPickerError? processPickerError,
- PopupDialogBuilder? popupDialogBuilder,
- OnBeforeChangeCallback? onBeforeChange,
- double? maxWidth,
- double? maxHeight,
- int? imageQuality,
- CameraDevice preferredCameraDevice = CameraDevice.rear,
- Duration? maxDuration,
- bool requestFullMetadata = true,
- Future<
void> onBeforePick()?, - Future<
void> onAfterPick()?, - SelectedImageBuilder? selectedImageBuilder,
- 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);