GlassBrightnessWidgetBuilder typedef
GlassBrightnessWidgetBuilder =
Widget Function(BuildContext context, Brightness brightness, double darkAmount)
Signature for GlassContentAwareBrightness.builder.
brightness is the committed content-aware verdict for the control.
darkAmount is the animated cross-fade position between the light (0.0)
and dark (1.0) appearance — it eases toward brightness over the flip
duration, so consumers can interpolate their own colors during the
transition.
Implementation
typedef GlassBrightnessWidgetBuilder = Widget Function(
BuildContext context,
Brightness brightness,
double darkAmount,
);