TFormBase class abstract

Base class for creating structured forms.

Constructors

TFormBase()

Properties

allFields → List<TFormField>
no setter
defaultFormType → TFormType?
Default layout type for forms with sub-forms (accordion, horizontalTabs, or verticalTabs).
no setter
fields → List<TFormField>
Returns the list of fields in the form.
no setter
Optional footer widget to display at the bottom of the form.
no setter
formActionName → String
The text for the primary action button.
no setter
formTitle → String
The title displayed on the form.
no setter
formWidth → double
The width of the form dialog/container.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasSubForms → bool
Whether this form contains any sub-forms (e.g. tabs or nested form groups).
no setter
isChanged → bool
Returns true if any field value differs from its initial value.
no setter
isFormCloseButton → bool
Whether to show a close button.
no setter
isFormPersistent → bool
Whether the form state persists.
no setter
isValid → bool
Returns true if there are no validation errors.
no setter
persistFormType → bool
Whether to persist form type selection across sessions.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sidebarFields → List<TFormField>?
Optional list of fields rendered in the sidebar panel.
no setter
sidebarSize → TGridSize
Controls the column span of the sidebar panel at each breakpoint.
no setter
storageKey → String?
Optional custom storage identifier for persisting form layout preference.
no setter
tabs → List<TFormTab>?
Optional list of tabs for tabbed/sub-form layouts.
no setter
validationErrors → List<String>
Collects validation errors from all fields.
no setter

Methods

dispose() → void
Disposes all field properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSave(BuildContext context) → Future<bool>
Hook called after the form has passed validation during submission/saving.
onValueChanged() → void
Hook called when any value changes.
reset() → void
Resets all fields to their initial values.
saveBaseline() → void
Saves current values of all properties as the baseline initial values.
toString() → String
A string representation of this object.
inherited

Operators

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