Toggle constructor
Toggle({
- Key? key,
- required String name,
- required String id,
- required List<
String> values, - required OnValueChanged? onValueChanged,
- String? description,
- Widget dateBuilder(
- int date
- int? time,
- required Function getUpdatedTime,
- required dynamic onTimeUpdated(),
- required bool isBeforeHeader,
- required Function getUpdatedValue,
- 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);