BrightnessCallback typedef

BrightnessCallback = FutureOr<void> Function(Brightness previous, Brightness current)

A callback triggered when the platform brightness changes.

Implementation

typedef BrightnessCallback = FutureOr<void> Function(
  Brightness previous,
  Brightness current,
);