SheetController class

A controller for a SlidingSheet.

Constructors

SheetController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state SheetState?
The current SheetState of this SlidingSheet.
no setter

Methods

collapse() Future<void>?
Fully collapses the sheet.
expand() Future<void>?
Fully expands the sheet.
hide() Future<void>?
Slides the sheet off to the bottom and hides it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild() → void
Calls every builder function of the sheet to rebuild the widgets with the current SheetState.
scrollTo(double offset, {Duration? duration, Curve? curve}) Future<void>?
Animates the scrolling child to a specified offset.
show() Future<void>?
Reveals the SlidingSheet if it is currently hidden.
snapToExtent(double extent, {Duration? duration, bool clamp = true}) Future<void>?
Animates the sheet to the extent.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) SheetController?
Inherit the SheetController from the closest SlidingSheet.