FlexibleSpaceBarSettings constructor

const FlexibleSpaceBarSettings({
  1. Key? key,
  2. required double toolbarOpacity,
  3. required double minExtent,
  4. required double maxExtent,
  5. required double currentExtent,
  6. required Widget child,
  7. bool? isScrolledUnder,
  8. bool? hasLeading,
})

Creates a Flexible Space Bar Settings widget.

Used by Scaffold and SliverAppBar. child must have a FlexibleSpaceBar widget in its tree for the settings to take affect.

Implementation

const FlexibleSpaceBarSettings({
  super.key,
  required this.toolbarOpacity,
  required this.minExtent,
  required this.maxExtent,
  required this.currentExtent,
  required super.child,
  this.isScrolledUnder,
  this.hasLeading,
}) : assert(minExtent >= 0),
     assert(maxExtent >= 0),
     assert(currentExtent >= 0),
     assert(toolbarOpacity >= 0.0),
     assert(minExtent <= maxExtent),
     assert(minExtent <= currentExtent),
     assert(currentExtent <= maxExtent);