GSField.multiImagePicker constructor

GSField.multiImagePicker({
  1. Key? key,
  2. required String tag,
  3. required Widget iconWidget,
  4. List<String>? defaultImagePathValues,
  5. String? title,
  6. String? errorMessage,
  7. String? helpMessage,
  8. bool? required,
  9. bool? showTitle,
  10. GSFieldStatusEnum? status,
  11. int? weight,
  12. String? hint,
  13. String? cameraPopupTitle,
  14. String? galleryPopupTitle,
  15. String? cameraPopupIcon,
  16. String? galleryPopupIcon,
  17. GSImageSource? imageSource,
  18. Color? iconColor,
  19. bool? showCropper,
  20. double? maximumSizePerImageInKB,
  21. double? maximumImageCount,
  22. VoidCallback? onErrorSizeItem,
})

Implementation

GSField.multiImagePicker({
  Key? key,
  required String tag,
  required Widget iconWidget,
  List<String>? defaultImagePathValues,
  String? title,
  String? errorMessage,
  String? helpMessage,
  bool? required,
  bool? showTitle,
  GSFieldStatusEnum? status,
  int? weight,
  String? hint,
  String? cameraPopupTitle,
  String? galleryPopupTitle,
  String? cameraPopupIcon,
  String? galleryPopupIcon,
  GSImageSource? imageSource,
  Color? iconColor,
  bool? showCropper,
  double? maximumSizePerImageInKB,
  double? maximumImageCount,
  VoidCallback? onErrorSizeItem,
}) : super(key: key) {
  model = GSMultiImagePickerModel(
    type: GSFieldTypeEnum.multiImagePicker,
    tag: tag,
    showCropper: showCropper ?? true,
    imageSource: imageSource ?? GSImageSource.both,
    showTitle: showTitle ?? false,
    title: title,
    cameraPopupTitle: cameraPopupTitle,
    galleryPopupTitle: galleryPopupTitle,
    cameraPopupIcon: cameraPopupIcon,
    galleryPopupIcon: galleryPopupIcon,
    errorMessage: errorMessage,
    helpMessage: helpMessage,
    required: required,
    status: status,
    weight: weight,
    hint: hint,
    iconWidget: iconWidget,
    defaultImagePath: defaultImagePathValues,
    maximumImageCount: maximumImageCount,
    maximumSizePerImageInKB: maximumSizePerImageInKB,
    onErrorSizeItem: onErrorSizeItem,
  );
}