reset static method

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

Implementation

static Future<AtOnboardingResetResult> reset({
  required BuildContext context,
  required AtOnboardingConfig config,
}) async {
  final result = await Navigator.push(context,
      MaterialPageRoute(builder: (BuildContext context) {
    return AtOnboardingResetScreen(config: config);
  }));
  if (result is AtOnboardingResetResult) {
    return result;
  } else {
    return AtOnboardingResetResult.cancelled;
  }
}