applyPreset method

  1. @override
void applyPreset(
  1. LightingPreset preset, {
  2. Duration duration = const Duration(milliseconds: 900),
  3. 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);
}