usePlatformBrightness function
Returns the current platform Brightness value and rebuilds the widget when it changes.
Implementation
Brightness usePlatformBrightness() {
return use(const _PlatformBrightnessHook(rebuildOnChange: true));
}
Returns the current platform Brightness value and rebuilds the widget when it changes.
Brightness usePlatformBrightness() {
return use(const _PlatformBrightnessHook(rebuildOnChange: true));
}