pickDate function
Future<DateTime?>
pickDate({
- required BuildContext context,
- TextDirection direction = TextDirection.rtl,
- Map<
DateTime, List> ? events, - MarkerBuilder? marker,
- DateTime? initialDate,
- bool useOfficialHolyDays = true,
- List<
HolyDay> customHolyDays = const [],
Implementation
Future<DateTime?> pickDate({
required BuildContext context,
TextDirection direction = TextDirection.rtl,
Map<DateTime, List>? events,
MarkerBuilder? marker,
DateTime? initialDate,
bool useOfficialHolyDays = true,
List<HolyDay> customHolyDays = const [],
}) async {
DateTime? selectedDate = await showDialog<DateTime>(
context: context,
builder: (_) => _TableCalendarPicker(direction, events, marker,
useOfficialHolyDays, customHolyDays, initialDate),
);
return selectedDate;
}