NpmDataRequest constructor
const
NpmDataRequest({
- Key? key,
- String userEmail = 'user@example.com',
- bool testMode = true,
- required dynamic onComplete(),
- bool autoFetch = true,
- String appName = 'Test App',
- bool formatResponse = false,
- String responseFormat = 'simple',
- bool existingUser = false,
- String? basicProfileDescription,
- String? userPreferencesDescription,
- String? personalityTraitsDescription,
- List<
String> connectedPlatforms = const [], - String? userAuthToken,
- String dataConsentBaseUrl = 'https://api2.onairos.uk/api/data-consent',
- VoidCallback? onConnectMore,
Implementation
const NpmDataRequest({
Key? key,
this.userEmail = 'user@example.com',
this.testMode = true,
required this.onComplete,
this.autoFetch = true,
this.appName = 'Test App',
this.formatResponse = false,
this.responseFormat = 'simple',
this.existingUser = false,
this.basicProfileDescription,
this.userPreferencesDescription,
this.personalityTraitsDescription,
this.connectedPlatforms = const [],
this.userAuthToken,
this.dataConsentBaseUrl = 'https://api2.onairos.uk/api/data-consent',
this.onConnectMore,
}) : super(key: key);