getWidget method

  1. @override
Widget getWidget(
  1. bool refresh
)
override

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);
}