defaultBrushFor method

Color defaultBrushFor(
  1. Brightness brightness
)

Get the default brush for this accent color based on the brightness.

See also:

Implementation

Color defaultBrushFor(Brightness brightness) {
  if (brightness.isDark) {
    return lighter;
  } else {
    return dark;
  }
}