NpmDataRequest constructor

const NpmDataRequest({
  1. Key? key,
  2. String userEmail = 'user@example.com',
  3. bool testMode = true,
  4. required dynamic onComplete(
    1. Map<String, dynamic>
    ),
  5. bool autoFetch = true,
  6. String appName = 'Test App',
  7. bool formatResponse = false,
  8. String responseFormat = 'simple',
  9. bool existingUser = false,
  10. String? basicProfileDescription,
  11. String? userPreferencesDescription,
  12. String? personalityTraitsDescription,
  13. List<String> connectedPlatforms = const [],
  14. String? userAuthToken,
  15. String dataConsentBaseUrl = 'https://api2.onairos.uk/api/data-consent',
  16. 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);