FDialogStyle.inherit constructor

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

Creates a FDialogStyle that inherits its properties.

Implementation

factory FDialogStyle.inherit({
  required FStyle style,
  required FColors colors,
  required FTypography typography,
  required bool touch,
}) => .new(
  decoration: ShapeDecoration(
    shape: RoundedSuperellipseBorder(
      side: BorderSide(color: colors.border, width: style.borderWidth),
      borderRadius: style.borderRadius.md,
    ),
    color: colors.card,
  ),
  slideableActions: FVariants(
    false,
    variants: {
      [.touch]: true,
    },
  ),
  slidePressHapticFeedback: style.hapticFeedback.selectionClick,
  contentStyle: FDialogContentStyles.inherit(colors: colors, typography: typography, touch: touch),
);