getWidget method

Widget getWidget(
  1. bool refresh
)
override

Implementation

Widget getWidget(bool refresh) {
  return DropDownWidget(
      key: ValueKey(id),
      name: name,
      id: id,
      getUpdatedTime: (){return time;},
      getUpdatedValue: (){return chosenValue;},
      onTimeUpdated: (int newTime){time = newTime;},
      values: values,
      time: time,
      dateBuilder: dateBuilder,
      description: description,
      onValueChanged: (String id, dynamic value) async{
        if (chosenValue != value) {
          chosenValue = value;
          if (onValueChanged != null) {
            return await onValueChanged!(id, value);
          }
        }
        return false;
      },
      chosenValue: chosenValue,
      isBeforeHeader: isBeforeHeader,);
}