overlayOptions property

OverlayOptions<T>? overlayOptions
final

Provide overlay options here to customise its behaviour.

closeOnItemSelected: true, // Whether to close the overlay when an item is selected. Defaults to [true].
closeOnFocusLost: true, // Whether to close the overlay when the search field loses focus. Defaults to [true].
closeOverlay() // A static method to close the overlay. You can use this to close the overlay from anywhere in your code.

Implementation

final OverlayOptions<T>? overlayOptions;