groupFields static method

TFormField groupFields(
  1. List<TFormField> fields, {
  2. String? label,
  3. String? description,
  4. bool initiallyExpanded = false,
})

Implementation

static TFormField<dynamic> groupFields(
  List<TFormField> fields, {
  String? label,
  String? description,
  bool initiallyExpanded = false,
}) {
  return TFormField(
    builder: (onValueChanged) => TFormBuilder(
      label: label,
      description: description,
      fields: fields,
      onValueChanged: () {
        onValueChanged(null);
      },
      initiallyExpanded: initiallyExpanded,
    ),
  );
}