TFormBuilder constructor

const TFormBuilder({
  1. Key? key,
  2. TFormBase? input,
  3. List<TFormField>? fields,
  4. double gapX = 16.0,
  5. double gapY = 26.0,
  6. VoidCallback? onValueChanged,
  7. IconData? icon,
  8. String? label,
  9. String? description,
  10. bool initiallyExpanded = false,
})

Creates a form builder.

Implementation

const TFormBuilder({
  super.key,
  this.input,
  this.fields,
  this.gapX = 16.0,
  this.gapY = 26.0,
  this.onValueChanged,
  this.icon,
  this.label,
  this.description,
  this.initiallyExpanded = false,
}) : assert((input == null) != (fields == null), 'Provide either "input" or "fields", not both.');