AppBar constructor

AppBar({
  1. Key? key,
  2. required AppBarBehavior behavior,
  3. required Widget body,
  4. AppBarAlignment alignment = AppBarAlignment.scroll,
  5. AppBarAlignment bouncingAlignment = AppBarAlignment.scroll,
  6. double initialOffset = 0,
})

Implementation

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