NyForm.login constructor

NyForm.login({
  1. required dynamic name,
  2. double crossAxisSpacing = 10,
  3. double mainAxisSpacing = 10,
  4. dynamic onChanged(
    1. Map<String, dynamic> data
    )?,
  5. bool validateOnFocusChange = false,
  6. bool locked = false,
  7. String? emailValidationRule,
  8. String? emailValidationMessage,
  9. String? passwordValidationRule,
  10. String? passwordValidationMessage,
  11. bool? passwordViewable,
  12. String? style,
  13. Map<String, dynamic> dummyData = const {},
})

Create a login form

Implementation

NyForm.login(
    {required name,
    this.crossAxisSpacing = 10,
    this.mainAxisSpacing = 10,
    this.onChanged,
    this.validateOnFocusChange = false,
    this.locked = false,
    String? emailValidationRule,
    String? emailValidationMessage,
    String? passwordValidationRule,
    String? passwordValidationMessage,
    bool? passwordViewable,
    String? style,
    Map<String, dynamic> dummyData = const {}})
    : form = NyLoginForm(
          name: name,
          passwordValidationRule: passwordValidationRule,
          passwordValidationMessage: passwordValidationMessage,
          emailValidationRule: emailValidationRule,
          emailValidationMessage: emailValidationMessage,
          passwordViewable: passwordViewable ?? true,
          style: style ?? "compact",
          dummyData: dummyData);