Dmytro Turskyi
056c01581b
Add isDark, isLight, and isSystem getters to ThemeMode ( #181475 )
...
Adds boolean convenience getters (`isDark`, `isLight`, `isSystem`) to
`ThemeMode`.
This change improves readability and ergonomics when branching on
`ThemeMode` values by
providing named, self-documenting getters instead of repeated equality
checks
(e.g. `themeMode == ThemeMode.dark`). The addition is non-breaking and
does not
change any existing behavior.
Example:
Before:
if (themeMode == ThemeMode.dark) {
...
}
After:
if (themeMode.isDark) {
...
}
No tests were added as this change introduces simple enum getters with
no logic
beyond value comparison and does not alter runtime behavior.
2026-01-29 16:14:09 +00:00
..
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-09 20:46:18 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-29 16:14:09 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-23 06:59:13 +00:00
2025-11-26 01:10:39 +00:00
2025-12-10 22:31:02 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-28 08:27:34 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-20 21:19:17 +00:00
2025-11-26 01:10:39 +00:00
2025-12-17 08:32:24 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-09 19:40:31 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-28 08:27:34 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-10 22:31:02 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-28 21:04:17 +00:00
2026-01-23 02:12:09 +00:00
2025-11-26 01:10:39 +00:00
2025-12-10 22:31:02 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-06 00:40:24 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-17 14:28:25 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-16 20:25:54 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-29 00:56:42 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-17 01:55:21 +00:00
2025-11-26 01:10:39 +00:00
2026-01-17 00:53:56 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-05 21:54:29 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-02 22:43:24 +00:00
2025-11-26 01:10:39 +00:00
2025-12-17 08:32:24 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-27 00:03:33 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-28 21:35:18 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-02 11:36:25 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-17 00:56:49 +00:00
2025-11-26 01:10:39 +00:00
2026-01-02 19:20:06 +00:00
2025-11-26 01:10:39 +00:00
2026-01-28 06:53:58 +00:00
2025-12-18 09:03:20 +00:00
2025-11-26 01:10:39 +00:00
2026-01-02 19:20:06 +00:00
2026-01-17 00:53:56 +00:00
2025-12-23 08:47:20 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-12-17 08:32:24 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-07 11:43:34 +00:00
2026-01-07 11:43:34 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-07 20:05:09 +00:00
2025-11-26 01:10:39 +00:00
2026-01-23 11:11:06 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-22 04:10:46 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00
2026-01-07 21:58:42 +00:00
2025-11-26 01:10:39 +00:00
2026-01-07 21:58:42 +00:00
2025-12-15 23:04:22 +00:00
2025-11-26 01:10:39 +00:00
2025-11-26 01:10:39 +00:00