FCalendarDayPickerStyle.inherit constructor

FCalendarDayPickerStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required FStyle style,
  4. 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),
);