ForgotPasswordAction constructor
ForgotPasswordAction(
- void callback(
- BuildContext context,
- 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);