withBrightness method

ColorScheme withBrightness(
  1. Brightness brightness
)

Returns a color scheme with a different brightness.

Implementation

ColorScheme withBrightness(Brightness brightness) {
  return ColorScheme(brightness, primary: _primary);
}