AppBar constructor
AppBar({
- Key? key,
- required AppBarBehavior behavior,
- required Widget body,
- AppBarAlignment alignment = AppBarAlignment.scroll,
- AppBarAlignment bouncingAlignment = AppBarAlignment.scroll,
- 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);