FCalendarDayPickerStyle.inherit constructor
FCalendarDayPickerStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
- required bool touch,
Creates a FCalendarDayPickerStyle that inherits its properties.
Implementation
factory FCalendarDayPickerStyle.inherit({
required FColors colors,
required FTypography typography,
required FStyle style,
required bool touch,
}) => FCalendarDayPickerStyle(
weekdayTextStyle: (touch ? typography.body.xs2 : typography.body.xs).copyWith(color: colors.mutedForeground),
dayStyles: .inherit(colors: colors, typography: typography, style: style),
daySize: .square(style.sizes.calendar),
);