BottomSheet class

A simple utility class to manage bottom sheets throughout the app.

Allows opening a bottom sheet with custom content, automatically applying any globally set configuration for consistent styling and behavior.

Provides a method to close the currently open bottom sheet easily.

Constructors

BottomSheet()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

config BottomSheetConfig?
Optional global configuration that applies to all bottom sheets opened via this utility, overriding default animation and style settings.
getter/setter pair

Static Methods

close(BuildContext context) → void
Closes the currently displayed bottom sheet by popping its route. This assumes that a bottom sheet route is currently active.
open(BuildContext context, Widget body) → void
Opens a bottom sheet by pushing a BottomSheetRoute onto the navigation stack.