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.withOpacity(disabledOpacity),
      background ?? this.background,
    );