BottomSheet Methods
The namespace for the BottomSheet widget is mBottomSheetObject. It contains the following methods:
destroy Method
Ensures that the garbage collection process of a BottomSheet occurs, and the data of the BottomSheet is wiped out. So, the next time a BottomSheet is displayed, a new instance of the BottomSheet is created.
Syntax
destroy()
Example
Platform Availability
- Android
dismiss Method
Dismisses a BottomSheet widget for users.
Syntax
dismiss()
Example
Platform Availability
- Android
show Method
Displays a BottomSheet widget for users.
Syntax
show()
Example
Platform Availability
- Android
setState Method
Sets the state of a BottomSheet widget as Expanded or Collapsed.
Syntax
setState()
Constants
- BOTTOM_SHEET_STATE_EXPANDED
- BOTTOM_SHEET_STATE_COLLAPSED
Example
Platform Availability
- Android