You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time a FormZInput is defined we must add a validation error even if we never get to use it. Some fields do not require validation, but do require being inside the form to later verify if the field has changed its value.
Example:
// abstract class FormzInput<T, E>
enum StatusMemberInputError { none }
class StatusMemberInput extends FormzInput<bool, StatusMemberInputError> {
const StatusMemberInput.pure({bool value = false}) : super.pure(value);
const StatusMemberInput.dirty({bool value = false}) : super.dirty(value);
@override
StatusMemberInputError? validator(bool value) => null;
}
The text was updated successfully, but these errors were encountered:
Every time a FormZInput is defined we must add a validation error even if we never get to use it. Some fields do not require validation, but do require being inside the form to later verify if the field has changed its value.
Example:
The text was updated successfully, but these errors were encountered: