FCalendarDayPickerStyle constructor

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

Implementation

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