FTooltipStyle.inherit constructor

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

Creates a FTooltipStyle that inherits its properties from the given colorScheme, typography, and style.

Implementation

FTooltipStyle.inherit({required FColorScheme colorScheme, required FTypography typography, required FStyle style})
    : this(
        decoration: BoxDecoration(
          color: colorScheme.background,
          borderRadius: style.borderRadius,
          border: Border.all(
            width: style.borderWidth,
            color: colorScheme.border,
          ),
          boxShadow: shadow,
        ),
        textStyle: typography.sm,
      );