clearSelection method

void clearSelection()

Implementation

void clearSelection() {
  setState(() {
    selectedDate = null;
    _controller.text = '';
  });
}