Reading a darkMode entry from a box

Why should you provide a defaultValue when reading the darkMode entry from the box in a Flutter application?

Options
  1. Because the value will be null when the application starts for the first time.
  2. Because value of themeMode is set based on the value of darkMode
  3. Both Choice 1 and 2
  4. Neither Choice 1 nor 2

Related Posts