Fix late initialization warning 58/29558/2
authorScott Murray <scott.murray@konsulko.com>
Thu, 21 Dec 2023 22:37:57 +0000 (17:37 -0500)
committerScott Murray <scott.murray@konsulko.com>
Thu, 21 Dec 2023 22:49:02 +0000 (22:49 +0000)
commitfcd868bd73d35bd79074f3425317152565aeb275
tree5363cf2b6390cfc3258a62b76c8fd9293e9720a0
parenta445ffb0d847b8d1e44213b95bfbe60ecdf19952
Fix late initialization warning

A late initialization warning was being triggered when leaving the
home/dashboard page when the random hybrid animation is disabled.
Initialize the associated timer member as null and add logic to
avoid referencing it in the non-random case where the timer does
not get created.

Bug-AGL: SPEC-5027

Change-Id: I63bd21db3005f70f2fe0d2d34181d0079cd25b00
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
lib/presentation/screens/dashboard/widgets/dashboard_content.dart