toProtoBuf method

DatepickerDateRange toProtoBuf()
override

Convert this date range into the protocol buffer format defined in date_range.proto.

Implementation

proto.DatepickerDateRange toProtoBuf() {
  var result = _makeProtoBuf(this)..weeksAgo = _ago;
  if (_startWeekday != null) {
    result.startWeekday = _startWeekday!;
  }
  return result;
}