AiutaTryOnFeature class
The main feature for the virtual try-on functionality.
- Annotations
-
- @JsonSerializable()
Constructors
- AiutaTryOnFeature.new({required AiutaTryOnLoadingPageFeature loadingPage, required AiutaTryOnInputImageValidationFeature inputImageValidation, required AiutaTryOnCartFeature cart, AiutaTryOnFitDisclaimerFeature? fitDisclaimer, AiutaTryOnFeedbackFeature? feedback, AiutaTryOnGenerationsHistoryFeature? generationsHistory, AiutaTryOnWithOtherPhotoFeature? otherPhoto, required AiutaTryOnToggles toggles, required AiutaTryOnIcons icons, required AiutaTryOnStrings strings, 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, andcart
to handle thw user intentions to add the product used for the try-on to the cart. - AiutaTryOnFeature.builtIn({required AiutaTryOnCartHandler cartHandler})
-
Creates a built-in try-on feature configuration with default settings.
factory
-
AiutaTryOnFeature.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cart → AiutaTryOnCartFeature
-
Cart feature to handle the user's intention to add the product
used for the try-on to the host app's cart.
final
- feedback → AiutaTryOnFeedbackFeature?
-
Feedback feature (optional) to allow the user to provide a
feedback on the try-on result.
final
- fitDisclaimer → AiutaTryOnFitDisclaimerFeature?
-
Fit disclaimer feature (optional) to indicate that the result
of the try-on may differ from real life.
final
- generationsHistory → AiutaTryOnGenerationsHistoryFeature?
-
Generations history feature (optional) to keep track of the
previous generations with the ability to delete them.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icons → AiutaTryOnIcons
-
Icons for the Try-On feature.
final
- inputImageValidation → AiutaTryOnInputImageValidationFeature
-
Input image validation feature to filter out invalid images
that are not suitable for the try-on process.
final
- loadingPage → AiutaTryOnLoadingPageFeature
-
Loading page feature with animated loading screen to
indicate that the try-on is being generated.
final
- otherPhoto → AiutaTryOnWithOtherPhotoFeature?
-
Try-On with other photo feature (optional) to allow the user
to use a different photo for the try-on with the same product
after seeing the result.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strings → AiutaTryOnStrings
-
Strings for the Try-On feature.
final
- styles → AiutaTryOnStyles
-
Styles for the Try-On feature.
final
- toggles → AiutaTryOnToggles
-
Toggles for the Try-On feature.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited