GlassSwipeController class
A controller to programmatically open, close, and inspect a GlassSwipeActions row.
- Inheritance
-
- Object
- ChangeNotifier
- GlassSwipeController
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isOpen → bool
-
Whether the actions row is currently open (leading or trailing).
no setter
- offset → double
-
Current horizontal offset of the primary child in logical pixels.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- swipeState → GlassSwipeState
-
Current swipe state.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
animateToOffset(
double target, {bool animated = true}) → void - Programmatically animates to a specific horizontal offset in logical pixels.
-
close(
{bool animated = true}) → void - Programmatically closes any open actions.
-
dismiss(
{bool animated = true, bool fromLeading = false}) → void - Programmatically triggers the full-swipe dismiss animation and invokes GlassSwipeActions.onDismissed.
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
openLeading(
{bool animated = true}) → void - Programmatically opens the leading actions.
-
openTrailing(
{bool animated = true}) → void - Programmatically opens the trailing actions.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited