showForgotPasswordScreen function

Future<void> showForgotPasswordScreen({
  1. required BuildContext context,
  2. FirebaseAuth? auth,
  3. String? email,
  4. WidgetBuilder? subtitleBuilder,
  5. WidgetBuilder? footerBuilder,
})

Implementation

Future<void> showForgotPasswordScreen({
  required BuildContext context,
  FirebaseAuth? auth,
  String? email,
  WidgetBuilder? subtitleBuilder,
  WidgetBuilder? footerBuilder,
}) async {
  final route = createPageRoute(
    context: context,
    builder: (_) => FlutterFireUIActions.inherit(
      from: context,
      child: ForgotPasswordScreen(
        auth: auth,
        email: email,
        footerBuilder: footerBuilder,
        subtitleBuilder: subtitleBuilder,
      ),
    ),
  );

  await Navigator.of(context).push(route);
}