BrightnessFS<T> extension
provides extensions for Widget
- on
Properties
- isDark → bool
-
Shorthand for brightness == Brightness.dark
no setter
- isLight → bool
-
Shorthand for brightness == Brightness.light
no setter
- name → String
-
Returns the brightness as String. example: dark | light
no setter
- toggled → Brightness
-
Returns toggled value of the brightness.
no setter