NyLoginForm class

NyLoginForm class

Inheritance

Constructors

NyLoginForm({String? name, String? emailValidationRule, String? emailValidationMessage, String? passwordValidationRule, String? passwordValidationMessage, bool passwordViewable = true, bool autofocus = false, String? style})

Properties

autofocus bool
Autofocus
getter/setter pair
emailValidationMessage String?
Email field - Validation message
getter/setter pair
emailValidationRule String?
Email field - Validation rule
getter/setter pair
getAutoFocusedField String?
Get the autofocus field for the form
no setterinherited
getCast Map<String, FormCast?>
Get the cast data for the form
no setterinherited
getDummyData Map<String, String?>
Get the dummy data for the form
no setterinherited
getFooterData Map<String, Widget?>
Get the footer data for the form
no setterinherited
getHeaderData Map<String, Widget?>
Get the header data for the form
no setterinherited
getHiddenData Map<String, dynamic>
Get the hidden data for the form
no setterinherited
getLoadData → dynamic Function()?
Get the load data function for the form
no setterinherited
getMetaData Map<String, dynamic>
Get the footer data for the form
no setterinherited
getStyle Map<String, dynamic>
Get the style data for the form
no setterinherited
getValidate Map<String, FormValidator?>
Get the validate data for the form
no setterinherited
groupedItems List<List>
Get the grouped items for the form
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isReady Stream<bool>
Stream for the form
no setterinherited
name String?
The name of the form
getter/setter pairinherited
passwordValidationMessage String?
Password field - Validation message
getter/setter pair
passwordValidationRule String?
Password field - Validation rule
getter/setter pair
passwordViewable bool
Password viewable
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateName String
Returns the state name for the form
no setterinherited
updated StreamController?
StreamController for the form
finalinherited

Methods

clear({bool refreshState = true}) → dynamic
Clear the form
inherited
clearField(String key) → dynamic
Clear a field in the form
inherited
create({Map<String, dynamic>? initialData, double? crossAxisSpacing, double? mainAxisSpacing, dynamic onChanged(String field, Map<String, dynamic> data)?, bool? validateOnFocusChange, bool? locked}) NyForm
Create a new form initialData The initial data for the form crossAxisSpacing The cross axis spacing for the form mainAxisSpacing The main axis spacing for the form onChanged The onChanged function for the form validateOnFocusChange Validate on focus change locked Lock the form
inherited
data({String? key, bool lowerCaseKeys = false}) → dynamic
Returns the data for the form If a key is provided, it will return the data for that key
inherited
fieldData(Field field) Map<String, dynamic>
Get the data for a field
inherited
fields() → dynamic
Returns the fields for the form
override
formReady() → dynamic
Check if the form is ready
inherited
hasField(String fieldKey) bool
Check if a field exists in the form
inherited
initialData(dynamic loadData(), {bool refreshState = false}) → dynamic
Load data for the form
inherited
isValid() bool
Check if the form passes validation
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange(String field, Map<String, dynamic> data) → dynamic
On change function for the form
inherited
refreshForm() → dynamic
Refresh the form
inherited
setData(Map<String, dynamic> data, {bool refreshState = true}) → dynamic
Set the data for the form
inherited
setFieldOptions(String key, dynamic value, {bool refreshState = true}) → dynamic
Set the options for a field in the form If the field does not exist, it will throw an exception
inherited
setFieldValue(String key, dynamic value, {bool refreshState = true}) → dynamic
Set the value for a field in the form If the field does not exist, it will throw an exception
inherited
submit({required dynamic onSuccess(dynamic value), dynamic onFailure(Exception exception)?, bool showToastError = true}) → dynamic
Submit the form If the form is valid, it will call the onSuccess function
inherited
toString() String
A string representation of this object.
inherited
validate() Map<String, dynamic>
Validate the form
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited