AppBar constructor

AppBar({
  1. Key? key,
  2. required AppBarBehavior behavior,
  3. required Widget body,
  4. Alignment alignment = Alignment.bottomCenter,
  5. Alignment bouncingAlignment = Alignment.bottomCenter,
  6. double initialOffset = 0,
  7. double minExtent = 0,
  8. double? maxExtent,
})

Implementation

AppBar({
  super.key,
  required this.behavior,
  required Widget body,
  this.alignment = Alignment.bottomCenter,
  this.bouncingAlignment = Alignment.bottomCenter,
  this.initialOffset = 0,
  this.minExtent = 0,
  this.maxExtent,
}) : builder = ((_, position) => body);