FAccordionStyle.inherit constructor

FAccordionStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FStyle style,
  3. required FTypography typography,
})

Creates a FDividerStyles that inherits its properties from colorScheme.

Implementation

FAccordionStyle.inherit({required FColorScheme colorScheme, required FStyle style, required FTypography typography})
  : this(
      titleTextStyle: typography.base.copyWith(fontWeight: FontWeight.w500, color: colorScheme.foreground),
      childTextStyle: typography.sm.copyWith(color: colorScheme.foreground),
      iconColor: colorScheme.primary,
      iconSize: 20,
      focusedOutlineStyle: style.focusedOutlineStyle,
      dividerStyle: FDividerStyle(color: colorScheme.border, padding: EdgeInsets.zero),
    );