hover method

Color hover(
  1. Color foreground, [
  2. Color? background
])

Returns a hovered color for the foreground on the background.

FColorScheme.background is used if background is not given.

Implementation

Color hover(Color foreground, [Color? background]) => Color.alphaBlend(
      foreground.withOpacity(enabledHoveredOpacity),
      background ?? this.background,
    );