EmailPasswordLoginForm constructor

const EmailPasswordLoginForm({
  1. required FutureOr<void> onLogin(
    1. String email,
    2. String password
    ),
  2. Key? key,
  3. void onForgotPassword(
    1. String email,
    2. BuildContext ctx
    )?,
  4. FutureOr<void> onRegister(
    1. String email,
    2. String password,
    3. BuildContext context
    )?,
  5. LoginOptions options = const LoginOptions(),
})

Constructs an EmailPasswordLoginForm widget.

onLogin: Callback function for user login. onForgotPassword: Callback function for when the user forgets their password. onRegister: Callback function for user registration. options: The options for configuring the login form.

Implementation

const EmailPasswordLoginForm({
  required this.onLogin,
  super.key,
  this.onForgotPassword,
  this.onRegister,
  this.options = const LoginOptions(),
});