setTillDate method
- DateTime? date
Updates the tillDate and controller text
Implementation
void setTillDate(DateTime? date) {
if (date != null) {
tillDateController.text = date.toString().split(' ')[0];
}
emit(state.copyWith(tillDate: date));
}