set_can_close


Description:

public void set_can_close (bool can_close)

Sets whether the bottom sheet can be closed by user.

It can be closed via the close button, swiping down, pressing <kbd>Escape</kbd> or clicking the content dimming (when modal).

Bottom sheet can still be closed using [property@BottomSheet:open].

Parameters:

this

a bottom sheet

can_close

whether the sheet can be closed by user