TFormTab class

A tab configuration for sub forms within TFormBuilder and TFormField.tabs.

Each TFormTab represents a tab containing either a form model (input) or a list of form fields (fields), with optional sidebar fields and styling.

Example:

TFormTab(
  title: 'Account',
  icon: Icons.person,
  input: AccountForm(),
)

Constructors

TFormTab({dynamic value, required String title, String? subtitle, IconData? icon, TFormBase? input, List<TFormField>? fields, List<TFormField>? sidebarFields, TGridSize? sidebarSize, Widget? footer, bool isEnabled = true, bool isActive = false, Map<String, dynamic>? data})
Creates a tab item for sub forms.
const
TFormTab.fields({dynamic value, required String title, String? subtitle, IconData? icon, required List<TFormField> fields, List<TFormField>? sidebarFields, TGridSize? sidebarSize, bool isEnabled = true, bool isActive = false, Widget? footer, Map<String, dynamic>? data})
Creates a form tab from a list of TFormFields.
factory
TFormTab.form({dynamic value, String? title, String? subtitle, IconData? icon, required TFormBase form, bool isEnabled = true, bool isActive = false, Widget? footer, Map<String, dynamic>? data})
Creates a form tab from a TFormBase model.
factory

Properties

data → Map<String, dynamic>?
Optional metadata attached to this tab.
final
fields → List<TFormField>?
Manual list of fields for this tab's content (alternative to input).
final
Optional footer widget displayed at the bottom of this tab.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Optional icon displayed on the tab.
final
input → TFormBase?
The form model for this tab's content.
final
isActive → bool
Whether to show an active indicator dot on the tab.
final
isEnabled → bool
Whether this tab is enabled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sidebarFields → List<TFormField>?
Optional sidebar fields for this tab.
final
sidebarSize → TGridSize?
Optional sidebar span sizing for this tab.
final
subtitle → String?
Optional subtitle or helper text.
final
title → String
The title/label displayed on the tab.
final
value → dynamic
The value identifying this tab.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toTab([dynamic effectiveValue]) → TTab
Converts this TFormTab to a TTab widget representation.

Operators

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