FRawItemContentStyle.inherit constructor

FRawItemContentStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required Color prefix,
  4. required Color color,
  5. required bool touch,
})

Creates a FRawItemContentStyle that inherits its properties.

Implementation

FRawItemContentStyle.inherit({
  required FColors colors,
  required FTypography typography,
  required Color prefix,
  required Color color,
  required bool touch,
}) : this(
       prefixIconStyle: .from(
         IconThemeData(color: prefix, size: typography.md.fontSize),
         variants: {
           [.disabled]: .delta(color: colors.disable(prefix)),
         },
       ),
       childTextStyle: FVariants(
         typography.sm.copyWith(color: color),
         variants: {
           [.disabled]: typography.sm.copyWith(color: colors.disable(color)),
         },
       ),
       padding: touch
           ? const .symmetric(horizontal: 10, vertical: 12.5)
           : const .symmetric(horizontal: 10, vertical: 6.5),
     );