FAccordionStyle.inherit constructor

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

Creates a FDividerStyles that inherits its properties from colorScheme.

Implementation

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