setSelected method

void setSelected(
  1. TimeOfDay selected
)

Implementation

void setSelected(TimeOfDay selected) {
  setState(() {
    selectedTime = selected;

    _controller.text = DateTimeUtil.formatTimeOfDay(selected);
  });

  if (widget.onSelect != null) {
    widget.onSelect!(selected);
  }
}