toString method
Returns a string representation of the date range.
The format is [start,end] for inclusive start and end, [start,end) for inclusive start and exclusive end, (start,end] for exclusive start and inclusive end, and (start,end) for exclusive start and end.
Implementation
@override
String toString() {
final DateFormat df = DateFormat('yyyy-MM-dd');
return "${_startInclusive && _start != null ? "[" : "("}${_start == null ? '-infinity' : df.format(_start!)},${_end == null ? 'infinity' : df.format(_end!)}${_endInclusive && _end != null ? "]" : ")"}";
}