onBrightnessChanged property

void Function(double)? onBrightnessChanged
final

Optional callback called when brightness should be changed (0.0 to 1.0). If not provided, brightness gestures will be disabled.

Implementation

final void Function(double)? onBrightnessChanged;