DarkMode extension
Check if the device is in Dark Mode
- on
Properties
- isDeviceInDarkMode → bool
-
Available on BuildContext, provided by the DarkMode extension
Example if (context.isDeviceInDarkMode) { do something here... }no setter
Check if the device is in Dark Mode
Available on BuildContext, provided by the DarkMode extension
Example if (context.isDeviceInDarkMode) { do something here... }