ImagePicker.circle constructor
ImagePicker.circle({
- 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,
- Border? border,
- BoxShadow? shadow,
- bool? readOnly,
- BoxFit? fit,
- bool? viewerBlur,
- double? viewerBlurSigma,
- bool? previewBlur,
- double? previewBlurSigma,
- Object? tag,
- Duration? duration,
- Color? closeColor,
- int? maxSize,
Implementation
factory ImagePicker.circle({
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 Border ? border,
final BoxShadow ? shadow,
final bool ? readOnly,
final BoxFit ? fit,
final bool ? viewerBlur,
final double ? viewerBlurSigma,
final bool ? previewBlur,
final double ? previewBlurSigma,
final Object ? tag,
final Duration ? duration,
final Color ? closeColor,
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,
border : border,
shadow : shadow,
readOnly : readOnly,
fit : fit ?? BoxFit.cover,
viewerBlur : viewerBlur,
viewerBlurSigma : viewerBlurSigma,
previewBlur : previewBlur,
previewBlurSigma : previewBlurSigma,
shape : BoxShape.circle,
tag : tag,
duration : duration ?? Duration(milliseconds: 250),
closeColor : closeColor,
maxSize : maxSize,
);