MacosDatePicker constructor

const MacosDatePicker({
  1. Key? key,
  2. DatePickerStyle style = DatePickerStyle.combined,
  3. required OnDateChanged onDateChanged,
  4. DateTime? initialDate,
  5. List<String> weekdayAbbreviations = const ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
  6. List<String> monthAbbreviations = const ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  7. String? dateFormat,
  8. 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,
});