FCalendarDayPickerStyle constructor

const FCalendarDayPickerStyle({
  1. required TextStyle headerTextStyle,
  2. required FCalendarEntryStyle current,
  3. required FCalendarEntryStyle enclosing,
  4. int? startDayOfWeek,
  5. double tileSize = 42,
})

Implementation

const FCalendarDayPickerStyle({
  required this.headerTextStyle,
  required this.current,
  required this.enclosing,
  this.startDayOfWeek,
  this.tileSize = 42,
}) : assert(
       startDayOfWeek == null || (DateTime.monday <= startDayOfWeek && startDayOfWeek <= DateTime.sunday),
       'startDayOfWeek ($startDayOfWeek) must be between DateTime.monday (1) and DateTime.sunday (7)',
     ),
     assert(0 < tileSize, 'tileSize ($tileSize) must be positive');