RCalendarController<T>.single constructor
RCalendarController<T>.single ({
- RCalendarMode? mode,
- DateTime? selectedDate,
- bool? isAutoSelect,
- T? initialData,
Implementation
RCalendarController.single(
{RCalendarMode? mode,
DateTime? selectedDate,
bool? isAutoSelect,
T? initialData})
: _selectedDates = selectedDate != null
? SplayTreeSet.of([selectedDate])
: SplayTreeSet(),
_isMultiple = false,
_isDispersion = true,
_isAutoSelect = isAutoSelect ?? true,
_data = initialData,
_mode = mode ?? RCalendarMode.month;