BuildContextX extension
Some shortcuts on BuildContext I use a lot
- on
Properties
- brightness → Brightness
-
Equivalent to
Theme.of(context).brightness
no setter - colorScheme → ColorScheme
-
Equivalent to
Theme.of(context).colorScheme
no setter - isDarkTheme → bool
-
True if
Theme.of(context).brightness
isBrightness.dark
no setter - theme → ThemeData
-
Equivalent to
Theme.of(context)
no setter