toMapWithRange method

Map<String, dynamic> toMapWithRange()

Возвращает Map с двумя полями, характеризующие диапазон дат

{
  'startDate': '1969-07-20T20:18:04.000Z'
  'endDate': '2026-01-01T00:00:00.000Z'
}

Implementation

Map<String, dynamic> toMapWithRange() => {
  'startDate': toUtc().toIso8601String(),
  'endDate': add(const Duration(hours: 23, minutes: 59)).toUtc().toIso8601String(),
};