AiutaTryOnFeature constructor

AiutaTryOnFeature({
  1. required AiutaTryOnLoadingPageFeature loadingPage,
  2. required AiutaTryOnInputImageValidationFeature inputImageValidation,
  3. required AiutaTryOnCartFeature cart,
  4. AiutaTryOnFitDisclaimerFeature? fitDisclaimer,
  5. AiutaTryOnFeedbackFeature? feedback,
  6. AiutaTryOnGenerationsHistoryFeature? generationsHistory,
  7. AiutaTryOnWithOtherPhotoFeature? otherPhoto,
  8. required AiutaTryOnToggles toggles,
  9. required AiutaTryOnIcons icons,
  10. required AiutaTryOnStrings strings,
  11. required AiutaTryOnStyles styles,
})

Creates an AiutaTryOnFeature with the required loadingPage to configure the the state when the user is waiting for the try-on to be generated, inputImageValidation to check if the input image is valid, and cart to handle thw user intentions to add the product used for the try-on to the cart.

Optional features include fitDisclaimer for indicate that the result of the try-on may differ from the real life, feedback to allow the user to provide feedback on the try-on result, generationsHistory to keep track of the previous generations, and otherPhoto to allow the user to use a different photo for the try-on with the same product after the seeing the result.

The toggles, icons, strings, and styles parameters are required to configure the feature's appearance and behavior.

Implementation

AiutaTryOnFeature({
  required this.loadingPage,
  required this.inputImageValidation,
  required this.cart,
  this.fitDisclaimer,
  this.feedback,
  this.generationsHistory,
  this.otherPhoto,
  required this.toggles,
  required this.icons,
  required this.strings,
  required this.styles,
});