GlassSwipeActionsState class

State for GlassSwipeActions, accessible via GlobalKey or GlassSwipeController.

Inheritance
Implemented types
Mixed-in types

Constructors

GlassSwipeActionsState()

Properties

context → BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isOpen → bool
Whether the actions row is currently resting open.
no setter
mounted → bool
Whether this State object is currently in a tree.
no setterinherited
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
widget → GlassSwipeActions
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
animateToOffset(double target, {bool animated = true}) → void
Programmatically animates to a specific horizontal offset in logical pixels.
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
close({bool animated = true}) → void
Closes the swipe actions row with animation.
override
containsGlobalPoint(Offset globalPosition) → bool
Returns true if globalPosition lies within this swipe row's bounds.
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.
override
didUpdateWidget(covariant GlassSwipeActions oldWidget) → void
Called whenever the widget configuration changes.
override
dismiss({bool animated = true, bool fromLeading = false}) → void
Programmatically dismisses the row via full swipe and invokes GlassSwipeActions.onDismissed.
dispose() → void
Called when this object is removed from the tree permanently.
override
initState() → void
Called when this object is inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openLeading({bool animated = true}) → void
Programmatically opens the leading actions.
openTrailing({bool animated = true}) → void
Programmatically opens the trailing actions.
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