Onairos constructor

const Onairos({
  1. String? returnLink,
  2. String? prefillUrl,
  3. required String AppName,
  4. String buttonType = "normal",
  5. Map<String, dynamic>? requestData,
  6. double buttonWidth = 180,
  7. double? buttonHeight,
  8. bool hasStroke = false,
  9. bool enabled = true,
  10. String buttonForm = "default",
  11. Function? onRejection,
  12. dynamic onResolved(
    1. String apiUrl,
    2. String token,
    3. dynamic userData
    )?,
  13. Function? preCheck,
  14. Color? color,
  15. bool swerv = false,
  16. bool debug = false,
  17. bool darkMode = false,
  18. String? preferredPlatform,
  19. bool testMode = false,
  20. String testModeType = 'universal_onboarding',
  21. String? customButtonText,
  22. String? googleClientId,
  23. Map<String, String>? oauthClientIds,
  24. String? basicProfileDescription,
  25. String? userPreferencesDescription,
  26. String? personalityTraitsDescription,
  27. bool? auto,
  28. 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
});