useOnPlatformBrightnessChange function Null safety

void useOnPlatformBrightnessChange(
  1. BrightnessCallback onBrightnessChange
)

Listens to the platform Brightness.

Implementation

void useOnPlatformBrightnessChange(BrightnessCallback onBrightnessChange) {
  return use(_PlatformBrightnessHook(onBrightnessChange: onBrightnessChange));
}