tryMinutes static method
A scale from data (an option, a JSON setting): null when minutes
does not divide a day — the web then takes defaultScale.
Implementation
static TimelineScale? tryMinutes(int minutes) {
final s = MinuteScale(minutes);
return s.isValid ? s : null;
}