baseHue method

int? baseHue(
  1. Rng r
)

The steered base hue (tenths), drawn from r; null when the intent sets no base hue. Always draws once when steering hues, so the accent draws keep their place.

Implementation

int? baseHue(Rng r) {
  final range = _baseRange();
  final v = r.nextU32();
  return range == null ? null : _pick(range, v);
}