setSimulatedNightStyle method
Sets the simulated night style with both color and intensity in a single call. This is more efficient than setting them separately when you need to change both.
color - The tint color for the night side
intensity - How bright the night side is (0.0 = very dark, 1.0 = full brightness)
Implementation
void setSimulatedNightStyle({Color? color, double? intensity}) {
bool changed = false;
if (color != null && _simulatedNightColor != color) {
_simulatedNightColor = color;
changed = true;
}
if (intensity != null && _simulatedNightIntensity != intensity) {
_simulatedNightIntensity = intensity.clamp(0.0, 1.0);
changed = true;
}
if (changed) {
notifyListeners();
}
}