DDSCaptureImage constructor

const DDSCaptureImage({
  1. required ImageEditType editType,
  2. bool? buttonDisable,
  3. double? buttonHeight,
  4. double? buttonWidth,
  5. String? buttonLabel,
  6. ButtonShape? buttonShape,
  7. ButtonType? buttonType,
  8. Color? primaryButtonBackgroundColor,
  9. Color? primaryButtonPressedColor,
  10. Color? primaryButtonTextColor,
  11. Color? disabledPrimaryButtonBackgroundColor,
  12. Color? disabledPrimaryButtonTextColor,
  13. Color? secondaryButtonBackgroundColor,
  14. Color? secondaryButtonBorderColor,
  15. Color? secondaryButtonPressedColor,
  16. Color? secondaryButtonTextColor,
  17. Color? disabledSecondaryButtonBackgroundColor,
  18. Color? disabledSecondaryButtonBorderColor,
  19. Color? disabledSecondaryButtonTextColor,
  20. required dynamic onImageCaptured(
    1. File rawImage,
    2. File editedImage
    ),
  21. Widget? customButton,
  22. Key? key,
})

Implementation

const DDSCaptureImage({
  required this.editType,
  this.buttonDisable,
  this.buttonHeight,
  this.buttonWidth,
  this.buttonLabel,
  this.buttonShape,
  this.buttonType,
  this.primaryButtonBackgroundColor,
  this.primaryButtonPressedColor,
  this.primaryButtonTextColor,
  this.disabledPrimaryButtonBackgroundColor,
  this.disabledPrimaryButtonTextColor,
  this.secondaryButtonBackgroundColor,
  this.secondaryButtonBorderColor,
  this.secondaryButtonPressedColor,
  this.secondaryButtonTextColor,
  this.disabledSecondaryButtonBackgroundColor,
  this.disabledSecondaryButtonBorderColor,
  this.disabledSecondaryButtonTextColor,
  required this.onImageCaptured,
  this.customButton,
  Key? key,
}) : super(key: key);