GlassMotionScope constructor

const GlassMotionScope({
  1. required Widget child,
  2. Stream<double>? lightAngle,
  3. Key? key,
})

Creates a GlassMotionScope.

lightAngle is a stream of angles in radians. Each emitted value replaces the lightAngle in the GlassTheme for this subtree.

Implementation

const GlassMotionScope({
  required this.child,
  this.lightAngle,
  super.key,
});