push static method

Future<AtOnboardingOTPResult?> push({
  1. required BuildContext context,
  2. required String atSign,
  3. String? email,
  4. required bool hideReferences,
  5. required AtOnboardingConfig config,
})

Static method to navigate to this screen

Implementation

static Future<AtOnboardingOTPResult?> push({
  required BuildContext context,
  required String atSign,
  String? email,
  required bool hideReferences,
  required AtOnboardingConfig config,
}) {
  return Navigator.push(
    context,
    MaterialPageRoute(
      builder: (_) => AtOnboardingOTPScreen(
        atSign: atSign,
        email: email,
        hideReferences: hideReferences,
        config: config,
      ),
    ),
  );
}