ImagePicker constructor
ImagePicker({
- required ImageController? controller,
- required double? width,
- required double? height,
- Future<
void> onTap()?, - String? htmlImage,
- String? assetImage,
- bool? alive,
- double? filterOpacity = 0.2,
- Widget? emptyWidget,
- Widget? filledWidget,
- Widget? onErrorWidget,
- Widget? onLoadingWidget,
- EdgeInsetsGeometry? margin = EdgeInsets.zero,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- Border? border,
- BoxShadow? shadow,
- bool? readOnly = false,
- BoxFit? fit = BoxFit.cover,
- bool? viewerBlur = true,
- double? viewerBlurSigma = 5.0,
- bool? previewBlur = false,
- double? previewBlurSigma = 5.0,
- BoxShape? shape = BoxShape.rectangle,
- Object? tag,
- Duration? duration,
- Color? closeColor,
- int? maxSize,
- Map<
String, String> ? headers, - 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" );