getWidget method
Implementation
Widget getWidget(bool refresh) {
return Toggle(
name: name,
isBeforeHeader: isBeforeHeader,
time: time,
dateBuilder: dateBuilder,
id: id,
getUpdatedTime: (){return time;},
getUpdatedValue: (){return chosenValue;},
onTimeUpdated: (int newTime){time = newTime;},
values: values,
description: description,
chosenValue: chosenValue,
onValueChanged: onValueChanged);
}