CollapsingToolbarDecoration constructor

const CollapsingToolbarDecoration({
  1. Key? key,
  2. required Widget child,
  3. required Color backgroundColor,
  4. required Color foregroundColor,
  5. required double animationValue,
})

Create a default decoration.

child is your CollapsingToolbar. It draws some overlay ellipses with foregroundColor on a background with backgroundColor. animationValue is calculated by the scrolling offset, see also in CollapsingToolbar.

Implementation

const CollapsingToolbarDecoration({
  Key? key,
  required this.child,
  required this.backgroundColor,
  required this.foregroundColor,
  required this.animationValue,
}) : super(key: key);