disable method

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

Returns a disabled color for the foreground on the background.

FColorScheme.background is used if background is not given.

Implementation

Color disable(Color foreground, [Color? background]) => Color.alphaBlend(
      foreground.withValues(alpha: disabledOpacity),
      background ?? this.background,
    );