ImagePicker.square constructor
ImagePicker.square({
- required ImageController controller,
- Future<
void> onTap()?, - String? htmlImage,
- String? assetImage,
- bool? alive,
- double? dimension,
- double? filterOpacity,
- Widget? emptyWidget,
- Widget? filledWidget,
- Widget? onErrorWidget,
- Widget? onLoadingWidget,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- Border? border,
- BoxShadow? shadow,
- bool? readOnly,
- BoxFit? fit,
- bool? viewerBlur,
- double? viewerBlurSigma,
- bool? previewBlur,
- double? previewBlurSigma,
- Duration? duration,
- Color? closeColor,
- Object? tag,
- int? maxSize,
Implementation
factory ImagePicker.square({
required final ImageController controller,
final Future<void> Function() ? onTap,
final String ? htmlImage,
final String ? assetImage,
final bool ? alive,
final double ? dimension,
final double ? filterOpacity,
final Widget ? emptyWidget,
final Widget ? filledWidget,
final Widget ? onErrorWidget,
final Widget ? onLoadingWidget,
final EdgeInsetsGeometry ? margin,
final Color ? backgroundColor,
final BorderRadius ? borderRadius,
final Border ? border,
final BoxShadow ? shadow,
final bool ? readOnly,
final BoxFit ? fit,
final bool ? viewerBlur,
final double ? viewerBlurSigma,
final bool ? previewBlur,
final double ? previewBlurSigma,
final Duration ? duration,
final Color ? closeColor,
final Object ? tag,
final int ? maxSize,
}) =>
ImagePicker(
controller : controller,
onTap : onTap,
htmlImage : htmlImage,
assetImage : assetImage,
alive : alive,
width : dimension ?? 250,
height : dimension ?? 250,
filterOpacity : filterOpacity ?? 0.2,
emptyWidget : emptyWidget,
filledWidget : filledWidget,
onErrorWidget : onErrorWidget,
onLoadingWidget : onLoadingWidget,
margin : margin,
backgroundColor : backgroundColor,
borderRadius : borderRadius,
border : border,
shadow : shadow,
readOnly : readOnly,
fit : fit ?? BoxFit.cover,
viewerBlur : viewerBlur,
viewerBlurSigma : viewerBlurSigma,
previewBlur : previewBlur,
previewBlurSigma : previewBlurSigma,
shape : BoxShape.rectangle,
tag : tag,
duration : duration ?? Duration(milliseconds: 250),
closeColor : closeColor,
maxSize : maxSize,
);