Onboarding constructor

Onboarding({
  1. Key? key,
  2. required BuildContext context,
  3. bool? hideReferences,
  4. bool? hideQrScan,
  5. String? atsign,
  6. required dynamic onboard(
    1. Map<String?, AtClientService>,
    2. String?
    ),
  7. required dynamic onError(
    1. Object?
    ),
  8. Widget? nextScreen,
  9. Widget? fistTimeAuthNextScreen,
  10. required AtClientPreference atClientPreference,
  11. Color? appColor,
  12. String? domain,
  13. required RootEnvironment rootEnvironment,
  14. String? appAPIKey,
})

Implementation

Onboarding(
    {Key? key,
    required this.context,
    this.hideReferences,
    this.hideQrScan,
    this.atsign,
    required this.onboard,
    required this.onError,
    this.nextScreen,
    this.fistTimeAuthNextScreen,
    required this.atClientPreference,
    this.appColor,
    this.logo,
    this.domain,
    required this.rootEnvironment,
    this.appAPIKey}) {
  AppConstants.rootEnvironment = rootEnvironment;
  if (AppConstants.rootEnvironment == RootEnvironment.Production &&
      appAPIKey == null) {
    throw ('App API Key is required for production environment');
  } else {
    _show();
  }
}