FAccordionStyle.inherit constructor

FAccordionStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required FStyle style,
  4. required bool touch,
})

Creates a FDividerStyles that inherits its properties.

Implementation

new inherit({required FColors colors, required FTypography typography, required FStyle style, required bool touch})
  : this(
      titleTextStyle: .from(
        typography.display.sm.copyWith(fontWeight: .w500, color: colors.foreground),
        variants: {
          [.hovered, .pressed]: .delta(decoration: () => .underline),
        },
      ),
      childTextStyle: typography.body.sm.copyWith(color: colors.foreground),
      iconStyle: .all(
        IconThemeData(
          color: colors.mutedForeground,
          size: touch ? typography.display.lg.fontSize : typography.display.md.fontSize,
        ),
      ),
      focusedOutlineStyle: style.focusedOutlineStyle,
      dividerStyle: FDividerStyle(color: colors.border, padding: .zero),
      tappableStyle: style.tappableStyle.copyWith(motion: FTappableMotion.none),
    );