barrierDismissible property
Allows user to click outside dropdown to dismiss
Setting this to false may cause the dropdown to flow over other elements while scrolling(including the appbar).
So, most of the time, pass true. Pass false when you wanna test something.
Implementation
final bool barrierDismissible;