Fixed Error with nongrowable list in reducer
Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
parent
774c3802e8
commit
63777c6b5c
@ -19,7 +19,9 @@ List<Timer> _setEmptyTimers(List<Timer> timers, TimersNotLoadedAction action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<Timer> _addTimer(List<Timer> timers, AddTimerAction 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) {
|
List<Timer> _updateTimer(List<Timer> timers, UpdateTimerAction action) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user