AppBarFadeEffect.onShrink constructor

AppBarFadeEffect.onShrink({
  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 shrink the appbar.

Implementation

AppBarFadeEffect.onShrink({
  super.key,
  double start = 0,
  double end = 1,
  required AppBarPosition position,
  required this.child,
})  : value = position.expandedPercent,
      start = 1 - start,
      end = 1 - end;