ForgotPasswordAction constructor

ForgotPasswordAction(
  1. void callback(
    1. BuildContext context,
    2. String? email
    )
)

An action that indicates that password recovery was triggered from the UI.

Could be used to show a ForgotPasswordScreen or trigger a custom logic:

SignInScreen(
  actions: [
    ForgotPasswordAction((context, email) {
      Navigator.of(context).push(
        MaterialPageRoute(
          builder: (context) => ForgotPasswordScreen(),
        ),
      );
    }),
  ]
);

Implementation

ForgotPasswordAction(this.callback);