login static method
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",
);
}