FCalendarDayPickerStyle constructor
const
FCalendarDayPickerStyle({
- required TextStyle headerTextStyle,
- required ({FCalendarDayStyle current, FCalendarDayStyle enclosing}) selectableStyles,
- required ({FCalendarDayStyle current, FCalendarDayStyle enclosing}) unselectableStyles,
- int? startDayOfWeek,
- double tileSize = 42,
Creates a FCalendarDayPickerStyle.
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.');