ChampionFormController class

Inheritance

Constructors

ChampionFormController({String? id, List<FormFieldDef> fields = const [], List<TextFormFieldValueById> textFieldValues = const [], List<MultiselectFormFieldValueById> multiselectValues = const [], List<FieldFocus> fieldFocus = const [], List<FormBuilderError> formErrors = const []})

Properties

fieldFocus List<FieldFocus>
getter/setter pair
fields List<FormFieldDef>
getter/setter pair
formErrors List<FormBuilderError>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
id String
final
multiselectValues List<MultiselectFormFieldValueById>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textFieldValues List<TextFormFieldValueById>
getter/setter pair

Methods

addError(FormBuilderError error) → void
addFields(List<FormFieldDef> newFields) → void
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearError(String fieldId, int errorPosition) → void
clearErrors(String fieldId) → void
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
findErrors(String fieldId) List<FormBuilderError>
findFieldFocusIndex(String fieldId) int?
findMultiselectValue(String id) MultiselectFormFieldValueById?
findMultiselectValueIndex(String id) int?
findTextFieldValue(String id) TextFormFieldValueById?
findTextFieldValueIndex(String id) int?
isFieldFocused(String fieldId) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetMultiselectChoices(String fieldId) → void
setFieldFocus(String fieldId, bool focused) → void
toggleMultiSelectValue(String fieldId, {List<String> toggleOn = const [], List<String> toggleOff = const []}) → void
toString() String
A string representation of this object.
inherited
updateMultiselectValues(String id, List<MultiselectOption> newValue, {bool multiselect = false}) → void
updateTextFieldValue(String id, String newValue) → void

Operators

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