toRange method

DateRange toRange([
  1. DateTime? endDate
])

Converts the current date to a DateRange object with the specified endDate.

Implementation

DateRange toRange([DateTime? endDate]) => DateRange(this, endDate);