Onairos constructor
const
Onairos({
- String? returnLink,
- String? prefillUrl,
- required String AppName,
- String buttonType = "normal",
- Map<
String, dynamic> ? requestData, - double buttonWidth = 180,
- double? buttonHeight,
- bool hasStroke = false,
- bool enabled = true,
- String buttonForm = "default",
- Function? onRejection,
- dynamic onResolved()?,
- Function? preCheck,
- Color? color,
- bool swerv = false,
- bool debug = false,
- bool darkMode = false,
- String? preferredPlatform,
- bool testMode = false,
- String testModeType = 'universal_onboarding',
- String? customButtonText,
- bool showLogo = true,
- String? googleClientId,
- Map<
String, String> ? oauthClientIds, - String? appLogo,
- String? basicProfileDescription,
- String? userPreferencesDescription,
- String? personalityTraitsDescription,
- bool? auto,
- Color? textColor,
Implementation
const Onairos({
this.returnLink,
this.prefillUrl,
required this.AppName,
this.buttonType = "normal",
this.requestData,
this.buttonWidth = 180,
this.buttonHeight,
this.hasStroke = false,
this.enabled = true,
this.buttonForm = "default", // Default value
this.onRejection,
this.onResolved,
this.preCheck,
this.color,
this.swerv = false,
this.debug = false,
this.darkMode = false, // Default to light mode
this.preferredPlatform,
this.testMode = false,
this.testModeType = 'universal_onboarding', // Default to universal onboarding test mode
this.customButtonText, // Allow custom button text
this.showLogo = true, // Show logo by default
this.googleClientId, // Google client ID for YouTube
this.oauthClientIds, // Client IDs for other platforms
this.appLogo, // Path to app logo asset
this.basicProfileDescription,
this.userPreferencesDescription,
this.personalityTraitsDescription,
this.auto, // Backward compatibility parameter
this.textColor, // Additional styling parameter
});