BottomSheetWidgetState class

Inheritance
Mixed-in types

Constructors

BottomSheetWidgetState()

Properties

absFraction → double
Absolute vertical expansion ratio of the bottom sheet based on the current animation value.
no setter
animValue → double
Returns the current animation value after applying the curve transformation. If no animation is active, returns the initial tween value.
no setter
context → BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
maxFraction ↔ double
Maximum vertical expansion ratio of the bottom sheet, relative to the screen height (0.0 to 1.0). e.g. 0.3 means up to 30% of the screen height.
getter/setter pair
mounted → bool
Whether this State object is currently in a tree.
no setterinherited
relFraction → double
Relative expansion ratio normalized to the range 0.0 to 1.0, based on the proportion of absFraction to maxFraction.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
viewportHeight ↔ double
The physical pixel height available for bottom sheet expansion, regardless of the content’s intrinsic size.
getter/setter pair
widget → BottomSheetWidget
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
animateTo(double value, {Duration? duration, Curve? curve}) → void
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createTicker(TickerCallback onTick) → Ticker
Creates a ticker with the given callback.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant BottomSheetWidget oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
findNearestSnap(double value, List<double> snapPoints) → double
Returns the snap point closest to the given value. Assumes snapPoints are ordered from highest to lowest.
initState() → void
Called when this object is inserted into the tree.
override
moveTo(double value) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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