AiutaFeatures class

This class is used to manage the features of the Aiuta SDK.

Annotations
  • @JsonSerializable()

Constructors

AiutaFeatures.new({AiutaWelcomeScreenFeature? welcomeScreen, AiutaOnboardingFeature? onboarding, AiutaConsentFeature? consent, required AiutaImagePickerFeature imagePicker, required AiutaTryOnFeature tryOn, AiutaShareFeature? share, AiutaWishlistFeature? wishlist})
Creates an AiutaFeatures instance with the given features configurations.
AiutaFeatures.builtIn({required String termsOfServiceUrl, required AiutaTryOnCartHandler cartHandler})
Creates a built-in features configuration with default settings.
factory
AiutaFeatures.fromJson(Map<String, dynamic> json)
factory

Properties

Feature for the consent screen (optional). If not provided, the consent will not be requested from the user. The consent can be embedded into the onboarding or displayed as a standalone page.
final
hashCode int
The hash code for this object.
no setterinherited
imagePicker AiutaImagePickerFeature
Configuration for the image picker feature (currently main screen). This feature allows users to select images from the camera, photo gallery, predefined models, and view their upload history.
final
onboarding AiutaOnboardingFeature?
Feature for the onboarding screen (optional). If not provided, the onboarding will not be shown. The onboarding feature is used to show the user how the virtual try-on works.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
share AiutaShareFeature?
The optional feature adds the ability to share generated images from the SDK using the native share dialog.
final
tryOn AiutaTryOnFeature
The main feature for the virtual try-on functionality.
final
welcomeScreen AiutaWelcomeScreenFeature?
Represents the optional welcome screen feature, shown when the SDK is opened for the first time. It depends on the onboarding completion; if the onboarding is not provided, the welcome screen will always be shown unless the SDK configured without it by yourself.
final
wishlist AiutaWishlistFeature?
The optional feature to interact with the host application's wishlist. If not provided, there will be no like button in the product card and the generation results.
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