Fixed Error with nongrowable list in reducer

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker 2020-10-15 15:53:28 +02:00
parent 774c3802e8
commit 63777c6b5c

View File

@ -19,7 +19,9 @@ List<Timer> _setEmptyTimers(List<Timer> timers, TimersNotLoadedAction action) {
}
List<Timer> _addTimer(List<Timer> timers, AddTimerAction action) {
return List.from(timers, growable: false)..add(action.timer);
return List.from(timers)
..add(action.timer)
..toList(growable: false);
}
List<Timer> _updateTimer(List<Timer> timers, UpdateTimerAction action) {