AppBarFadeEffect.onExpand constructor

AppBarFadeEffect.onExpand({
  1. Key? key,
  2. double start = 0,
  3. double end = 1,
  4. required AppBarPosition position,
  5. required Widget child,
})

The fade-out effect is applied when on expand the appbar.

Implementation

AppBarFadeEffect.onExpand({
  super.key,
  this.start = 0,
  this.end = 1,
  required AppBarPosition position,
  required this.child,
}) : value = position.shrinkedPercent;