BottomSheetConfig class

Configuration options for customizing the appearance and behavior of a bottom sheet, including animation and layout properties.

Constructors

BottomSheetConfig({Duration? duration, Curve? curve, Duration? fadeInDuration, Curve? fadeInCurve, Duration? fadeOutDuration, Curve? fadeOutCurve, double? initialFraction, Color? barrierColor, BottomSheetBuilder? sheetBuilder, BottomSheetBuilder? builder})
const

Properties

barrierColor Color?
The color of the modal barrier behind the bottom sheet. If null, defaults to transparent or system default.
final
builder BottomSheetBuilder?
A builder that builds the inner content of the bottom sheet.
final
curve Curve?
The common animation curve applied throughout bottom sheet animations, including snapping and transition effects.
final
duration Duration?
The shared duration for various bottom sheet animations, such as snapping, resizing, or dismissing transitions.
final
fadeInCurve Curve?
The animation curve used during the initial fade-in.
final
fadeInDuration Duration?
The duration of the fade-in effect when the bottom sheet first appears.
final
fadeOutCurve Curve?
The animation curve used during the fade-out transition.
final
fadeOutDuration Duration?
The duration of the fade-out effect when the bottom sheet is dismissed.
final
hashCode int
The hash code for this object.
no setterinherited
initialFraction double?
The initial visible fraction of the bottom sheet when shown.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sheetBuilder BottomSheetBuilder?
A builder that builds the card-style container inside the bottom sheet, applying consistent styling, shape, and background.
final

Methods

coptyWith(BottomSheetConfig? other) BottomSheetConfig
Returns a new config where any null values are replaced by the corresponding values from other.
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