backdropSceneKind function
The family scene backdrop paints (a key of
backgroundScenePainters), or null for anything else: no backdrop, a
plain colour, gradients, patterns and meshes. Chrome that sits over a
scene's art checks it (the toolbar's mode button: Bauhaus's masthead,
Vaporwave's sun).
Implementation
BackgroundKind? backdropSceneKind(CalcBackdrop? backdrop) {
if (backdrop is! SpecBackdrop) return null;
final kind = backdrop.spec.kind;
return backgroundScenePainters.containsKey(kind) ? kind : null;
}