applyPreset method
void
applyPreset(
- LightingPreset preset, {
- Duration duration = const Duration(milliseconds: 900),
- Curve curve = Curves.decelerate,
override
Applies an ambient preset, fading the ambient color smoothly.
Implementation
@override
void applyPreset(
LightingPreset preset, {
Duration duration = const Duration(milliseconds: 900),
Curve curve = Curves.decelerate,
}) {
preset.apply(this, duration: duration, curve: curve);
}