NImagePicker constructor

const NImagePicker({
  1. required NImagePickerController controller,
  2. String onLoadingImage = '',
  3. BoxFit imageFit = BoxFit.cover,
  4. EdgeInsetsGeometry margin = EdgeInsets.zero,
  5. bool enable = true,
  6. BoxFit fit = BoxFit.cover,
  7. double filterOpacity = 0.2,
  8. Color? bankgroundColor,
  9. BoxShadow? shadow,
  10. Future<void> onTap()?,
  11. BorderRadius? borderRadius,
  12. Border? border,
  13. double? width,
  14. double? height,
  15. Widget? onClearWidget,
  16. Widget? onErrorWidget,
  17. Widget? onSelectionWidget,
  18. Widget? onLoadingWidget,
  19. Key? key,
})

Implementation

const NImagePicker({
  required this.controller,
  ///Only load image from https or http
  this.onLoadingImage = '',
  this.imageFit       = BoxFit.cover,
  this.margin         = EdgeInsets.zero,
  this.enable         = true,
  this.fit            = BoxFit.cover,
  this.filterOpacity  = 0.2,
  this.bankgroundColor,
  this.shadow,
  this.onTap,
  this.borderRadius,
  this.border,
  this.width,
  this.height,
  this.onClearWidget,
  this.onErrorWidget,
  this.onSelectionWidget,
  this.onLoadingWidget,
  super.key
});