MacosDatePicker constructor
const
MacosDatePicker({
- Key? key,
- DatePickerStyle style = DatePickerStyle.combined,
- required OnDateChanged onDateChanged,
- DateTime? initialDate,
- List<
String> weekdayAbbreviations = const ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], - List<
String> monthAbbreviations = const ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - String? dateFormat,
- bool? startWeekOnMonday,
{macro macosDatePicker}
Implementation
const MacosDatePicker({
super.key,
this.style = DatePickerStyle.combined,
required this.onDateChanged,
this.initialDate,
// Use this to get the weekday abbreviations instead of
// localizations.narrowWeekdays() in order to match Apple's spec
this.weekdayAbbreviations = const [
'Su',
'Mo',
'Tu',
'We',
'Th',
'Fr',
'Sa',
],
this.monthAbbreviations = const [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
],
this.dateFormat,
this.startWeekOnMonday,
});