NyForm.login constructor
NyForm.login({
- required dynamic name,
- double crossAxisSpacing = 10,
- double mainAxisSpacing = 10,
- dynamic onChanged()?,
- bool validateOnFocusChange = false,
- bool locked = false,
- String? emailValidationRule,
- String? emailValidationMessage,
- String? passwordValidationRule,
- String? passwordValidationMessage,
- bool? passwordViewable,
- String? style,
- 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);