Open
Description
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;
}
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs Triage