ImagePicker constructor

ImagePicker({
  1. required ImageController? controller,
  2. required double? width,
  3. required double? height,
  4. Future<void> onTap()?,
  5. String? htmlImage,
  6. String? assetImage,
  7. bool? alive,
  8. double? filterOpacity = 0.2,
  9. Widget? emptyWidget,
  10. Widget? filledWidget,
  11. Widget? onErrorWidget,
  12. Widget? onLoadingWidget,
  13. EdgeInsetsGeometry? margin = EdgeInsets.zero,
  14. Color? backgroundColor,
  15. BorderRadius? borderRadius,
  16. Border? border,
  17. BoxShadow? shadow,
  18. bool? readOnly = false,
  19. BoxFit? fit = BoxFit.cover,
  20. bool? viewerBlur = true,
  21. double? viewerBlurSigma = 5.0,
  22. bool? previewBlur = false,
  23. double? previewBlurSigma = 5.0,
  24. BoxShape? shape = BoxShape.rectangle,
  25. Object? tag,
  26. Duration? duration,
  27. Color? closeColor,
  28. int? maxSize,
  29. Map<String, String>? headers,
  30. Key? key,
})

Implementation

ImagePicker({
  required super.controller,
  required super.width,
  required super.height,
  super.onTap,
  super.htmlImage,
  super.assetImage,
  super.alive,
  super.filterOpacity,
  super.emptyWidget,
  super.filledWidget,
  super.onErrorWidget,
  super.onLoadingWidget,
  super.margin,
  super.backgroundColor,
  super.borderRadius,
  super.border,
  super.shadow,
  super.readOnly,
  super.fit,
  super.viewerBlur,
  super.viewerBlurSigma,
  super.previewBlur,
  super.previewBlurSigma,
  super.shape,
  super.tag,
  super.duration,
  super.closeColor,
  super.maxSize,
  super.headers,
  super.key,
}) : assert( htmlImage == null || assetImage == null, "Only one image must be provided" );