login static method

NyLoginForm login({
  1. String? name,
  2. String? emailValidationRule = "email",
  3. String? emailValidationMessage,
  4. String? passwordValidationRule = "password_v1",
  5. String? passwordValidationMessage,
  6. bool? passwordViewable,
  7. String? style,
  8. Map<String, dynamic> dummyData = const {},
  9. Map<String, dynamic> initialData = const {},
})

Create a login form This Form contains the following fields:

  • Email (email)
  • Password (password)

Implementation

static NyLoginForm login(
    {String? name,
    String? emailValidationRule = "email",
    String? emailValidationMessage,
    String? passwordValidationRule = "password_v1",
    String? passwordValidationMessage,
    bool? passwordViewable,
    String? style,
    Map<String, dynamic> dummyData = const {},
    Map<String, dynamic> initialData = const {}}) {
  return NyLoginForm(
    name: name,
    passwordValidationRule: passwordValidationRule,
    passwordValidationMessage: passwordValidationMessage,
    emailValidationRule: emailValidationRule,
    emailValidationMessage: emailValidationMessage,
    passwordViewable: passwordViewable ?? true,
    style: style ?? "compact",
  );
}