ExpressiveSheetController class
Drives an ExpressiveBottomSheet (Compose's SheetState): where it
rests, where it is going, and the springs that take it there. One
controller serves one sheet at a time.
- Inheritance
-
- Object
- ChangeNotifier
- ExpressiveSheetController
Constructors
Properties
- currentValue → ExpressiveSheetValue
-
Where the sheet rests, or rested before the move now under way.
no setter
- hasExpandedState → bool
-
Whether the sheet has an expanded anchor.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasPartiallyExpandedState → bool
-
Whether the sheet has a partially expanded anchor.
no setter
- isVisible → bool
-
Whether the sheet shows or is on its way to showing.
no setter
- offset → double?
-
The sheet's top, from the top of the space it stands in; null before
it is laid out.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetValue → ExpressiveSheetValue
-
Where the sheet is going: currentValue at rest.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
expand(
) → Future< void> - Raises the sheet to its expanded anchor on the default spatial spring.
-
hide(
) → Future< void> - Lowers the sheet out of sight on the fast effects spring.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
partialExpand(
) → Future< void> - Settles the sheet on its partial anchor on the fast effects spring.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
show(
) → Future< void> - Raises the sheet to its partial anchor, or its expanded one when it has none, on the default spatial spring. Before the sheet is laid out the move waits for its first layout.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited