SheetController class
A controller for a SlidingSheet.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- state → SheetState?
-
The current SheetState of this SlidingSheet.
read-only
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.