FSidebarGroupStyle.inherit constructor

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

Creates a FSidebarGroupStyle that inherits its properties.

Implementation

FSidebarGroupStyle.inherit({
  required FColors colors,
  required FTypography typography,
  required FStyle style,
  required bool touch,
}) : this(
       labelStyle: typography.xs.copyWith(color: colors.mutedForeground, overflow: .ellipsis, fontWeight: .w500),
       actionStyle: FVariants.from(
         IconThemeData(color: colors.mutedForeground, size: typography.md.fontSize),
         variants: {
           [.hovered, .pressed]: .delta(color: colors.foreground),
         },
       ),
       tappableStyle: style.tappableStyle,
       focusedOutlineStyle: style.focusedOutlineStyle,
       itemStyle: .inherit(colors: colors, typography: typography, style: style, touch: touch),
     );