Toggle constructor

Toggle({
  1. Key? key,
  2. required String name,
  3. required String id,
  4. required List<String> values,
  5. required OnValueChanged? onValueChanged,
  6. String? description,
  7. Widget dateBuilder(
    1. int date
    )?,
  8. int? time,
  9. required Function getUpdatedTime,
  10. required dynamic onTimeUpdated(
    1. int
    ),
  11. required bool isBeforeHeader,
  12. required Function getUpdatedValue,
  13. String? chosenValue,
})

Implementation

Toggle(
    {Key? key,
    required this.name,
    required this.id,
    required this.values,
    required this.onValueChanged,
    this.description,
    this.dateBuilder,
    this.time,
    required this.getUpdatedTime,
    required this.onTimeUpdated,
    required this.isBeforeHeader,
    required this.getUpdatedValue,
    this.chosenValue})
    : super(key: key);