FCalendarStyle.inherit constructor
FCalendarStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FIcons icons,
- required FStyle style,
- required FHapticFeedback hapticFeedback,
- 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,
),
);