AtomicConfig constructor

AtomicConfig({
  1. required String publicToken,
  2. String? scope,
  3. List<AtomicTask>? tasks,
  4. @Deprecated("This has been moved to 'tasks'") AtomicProductType? product,
  5. AtomicProductType? additionalProduct,
  6. @Deprecated("This has been moved to 'tasks'") AtomicDistribution? distribution,
  7. String? linkedAccount,
  8. AtomicTheme? theme,
  9. String language = 'en',
  10. AtomicDeeplink? deeplink,
  11. Map<String, String>? metadata,
  12. AtomicSearch? search,
  13. List<AtomicTransactHandoff>? handoff,
  14. AtomicExperiments? experiments,
  15. Customer? customer,
})

Implementation

AtomicConfig({
  required this.publicToken,
  this.scope,
  this.tasks,
  @Deprecated("This has been moved to 'tasks'") this.product,
  this.additionalProduct,
  @Deprecated("This has been moved to 'tasks'") this.distribution,
  this.linkedAccount,
  this.theme,
  this.language = 'en',
  this.deeplink,
  this.metadata,
  this.search,
  this.handoff,
  this.experiments,
  this.customer,
}) : assert(tasks != null || product != null,
          'AtomicConfig requires a valid tasks list or a valid product type');