getWidget method
Implementation
@override
Widget getWidget(bool refresh) {
return EditTextValue(
getUpdatedTime: (){return time;},
getUpdatedValue: (){return chosenValue;},
onTimeUpdated: (int newTime){time = newTime;},
name: name,
id: id,
description: description,
chosenValue: chosenValue,
key: ValueKey(id),
isBeforeHeader: isBeforeHeader,
onValueChanged: (String id, dynamic value) async{
if (chosenValue != value) {
chosenValue = value;
if (onValueChanged != null) {
return await onValueChanged!(id, value);
}
}
return false;
},
time: time,
long: long,
isReadOnly: readOnly,
dateBuilder: dateBuilder);
}