NpmModalFlow constructor

const NpmModalFlow({
  1. Key? key,
  2. required bool visible,
  3. required VoidCallback onClose,
  4. String? appName,
  5. dynamic onResolved(
    1. String apiUrl,
    2. String token,
    3. dynamic userData
    )?,
  6. bool closeOnTrainingComplete = true,
  7. String? preferredPlatform,
  8. bool? forceExistingUser,
  9. bool testMode = false,
  10. String? basicProfileDescription,
  11. String? userPreferencesDescription,
  12. String? personalityTraitsDescription,
})

Implementation

const NpmModalFlow({
  Key? key,
  required this.visible,
  required this.onClose,
  this.appName,
  this.onResolved,
  this.closeOnTrainingComplete = true,
  this.preferredPlatform, // Add preferred platform parameter
  this.forceExistingUser, // Add forceExistingUser parameter
  this.testMode = false, // Default to false
  this.basicProfileDescription,
  this.userPreferencesDescription,
  this.personalityTraitsDescription,
}) : super(key: key);