ensureColors method
Ensure that the Colors Map is set, using a colorGenerator.
Implementation
void ensureColors(ColorGenerator colorGenerator) {
colors ??= colorGenerator.buildColors(List.from(categories).cast());
disabledColors ??= colorGenerator.buildDisabledColors(
List.from(categories).cast(),
);
}