brightnessFor method

ThemeBrightness? brightnessFor(
  1. FamilyDefinition def
)

The brightness to use instead of the drawn one, when def can draw it; null keeps the draw.

Implementation

ThemeBrightness? brightnessFor(FamilyDefinition def) {
  final want = brightness;
  return want != null && brightnessAllowed(def, want) ? want : null;
}