TFormTab constructor

const TFormTab({
  1. dynamic value,
  2. required String title,
  3. String? subtitle,
  4. IconData? icon,
  5. TFormBase? input,
  6. List<TFormField>? fields,
  7. List<TFormField>? sidebarFields,
  8. TGridSize? sidebarSize,
  9. Widget? footer,
  10. bool isEnabled = true,
  11. bool isActive = false,
  12. Map<String, dynamic>? data,
})

Creates a tab item for sub forms.

Implementation

const TFormTab({
  this.value,
  required this.title,
  this.subtitle,
  this.icon,
  this.input,
  this.fields,
  this.sidebarFields,
  this.sidebarSize,
  this.footer,
  this.isEnabled = true,
  this.isActive = false,
  this.data,
}) : assert(input != null || fields != null, 'Provide either "input" or "fields" for TFormTab.');