GSField.imagePicker constructor
GSField.imagePicker({
- Key? key,
- required String tag,
- required Widget iconWidget,
- String? defaultImagePathValue,
- 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? maximumSizePerImageInBytes,
- VoidCallback? onErrorSizeItem,
Implementation
GSField.imagePicker({
Key? key,
required String tag,
required Widget iconWidget,
String? defaultImagePathValue,
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? maximumSizePerImageInBytes,
VoidCallback? onErrorSizeItem,
}) : super(key: key) {
model = GSImagePickerModel(
type: GSFieldTypeEnum.imagePicker,
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,
value: defaultImagePathValue,
maximumSizePerImageInBytes: maximumSizePerImageInBytes,
onErrorSizeItem: onErrorSizeItem,
);
}