Whether the app bar should remain visible at the start of the scroll view.
The app bar can still expand and contract as the user scrolls, but it will remain visible rather than being scrolled out of view.
The following animations show how the app bar changes its scrolling behavior based on the value of this property.
- App bar with pinned set to false:
- App bar with pinned set to true:
final bool pinned;