ImagePicker.expand constructor

ImagePicker.expand({
  1. required ImageController controller,
  2. Future<void> onTap()?,
  3. String? htmlImage,
  4. String? assetImage,
  5. bool? alive,
  6. double? filterOpacity,
  7. Widget? emptyWidget,
  8. Widget? filledWidget,
  9. Widget? onErrorWidget,
  10. Widget? onLoadingWidget,
  11. EdgeInsetsGeometry? margin,
  12. Color? backgroundColor,
  13. BorderRadius? borderRadius,
  14. Border? border,
  15. BoxShadow? shadow,
  16. bool? readOnly,
  17. BoxFit? fit,
  18. bool? viewerBlur,
  19. double? viewerBlurSigma,
  20. bool? previewBlur,
  21. double? previewBlurSigma,
  22. Object? tag,
  23. Duration? duration,
  24. Color? closeColor,
  25. int? maxSize,
})

Implementation

factory ImagePicker.expand({
  required final ImageController  controller,
  final Future<void> Function() ? onTap,
  final String                  ? htmlImage,
  final String                  ? assetImage,
  final bool                    ? alive,
  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 Object                  ? tag,
  final Duration                ? duration,
  final Color                   ? closeColor,
  final int                     ? maxSize,
}) =>
ImagePicker(
  controller        : controller,
  onTap             : onTap,
  htmlImage         : htmlImage,
  assetImage        : assetImage,
  alive             : alive,
  width             : double.infinity,
  height            : double.infinity,
  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,
);