Another interesting property when dealing with themes is the brightness property. Light and dark apps now getting common. Apple introduced a toggle dark mode in iOS 13, and Google made it available in Android 10.
The lightness enum is how Flutter supports this feature. By toggling lightness, you have seen the background and text colors automatically get dark/light.
There is also a darkTheme property in MaterialApp where you can design the dark version of your app. These properties are platform-aware and will automatically toggle the themes based on the phone's settings.
Including this feature now in your app will future-proof your apps, as we are entering a world where both light and dark support is expected.