FCardStyle.inherit constructor

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

Creates a FCardStyle that inherits its properties from colorScheme, typography and style.

Implementation

FCardStyle.inherit({required FColorScheme colorScheme, required FTypography typography, required FStyle style})
    : decoration = BoxDecoration(
        border: Border.all(color: colorScheme.border),
        borderRadius: style.borderRadius,
        color: colorScheme.background,
      ),
      content = FCardContentStyle.inherit(colorScheme: colorScheme, typography: typography);