getCloseTime function

String getCloseTime(
  1. String weekDataComboValue
)

Implementation

String getCloseTime(String weekDataComboValue){
  _initWeekEnd();
  var ret = "16:00";
  for (var item in currentProvider.workTime)
    if (item.id.toString() == weekDataComboValue)
      ret = item.closeTime;
  DateTime _time = DateFormat('HH:mm').parse(ret);
  return DateFormat(appSettings.getTimeFormat()).format(_time);
}