activateAccount static method

Future<AtOnboardingResult> activateAccount({
  1. required BuildContext context,
  2. required AtOnboardingConfig config,
})

Implementation

static Future<AtOnboardingResult> activateAccount({
  required BuildContext context,
  required AtOnboardingConfig config,
}) async {
  /// Initial Setup
  await _initialSetup(context);

  if (context.mounted) {
    final result = await Navigator.push(
      context,
      MaterialPageRoute(
        builder: (BuildContext context) {
          return AtOnboardingActivateScreen(
            hideReferences: false,
            config: config,
          );
        },
      ),
    );

    if (result is AtOnboardingResult) {
      return result;
    }
  }

  return AtOnboardingResult.cancelled();
}