FCalendarStyle.inherit constructor

FCalendarStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required FIcons icons,
  4. required FStyle style,
  5. required FHapticFeedback hapticFeedback,
  6. required bool touch,
})

Creates a FCalendarStyle that inherits its properties.

Implementation

factory FCalendarStyle.inherit({
  required FColors colors,
  required FTypography typography,
  required FIcons icons,
  required FStyle style,
  required FHapticFeedback hapticFeedback,
  required bool touch,
}) => FCalendarStyle(
  headerStyle: .inherit(colors: colors, typography: typography, icons: icons, style: style, touch: touch),
  dayPickerStyle: .inherit(colors: colors, typography: typography, style: style, touch: touch),
  monthPickerStyle: .inherit(colors: colors, typography: typography, style: style),
  yearPickerStyle: .inherit(colors: colors, typography: typography, style: style),
  wheelPickerStyle: .inherit(
    colors: colors,
    style: style,
    typography: typography,
    hapticFeedback: hapticFeedback,
    touch: touch,
  ),
  decoration: ShapeDecoration(
    shape: RoundedSuperellipseBorder(
      side: BorderSide(color: colors.border, width: style.borderWidth),
      borderRadius: style.borderRadius.md,
    ),
    color: colors.card,
  ),
);