ActionController class final

use ActionController to control the animation of SlideActionPanel when the SlidablePanel is open. for example, you can use ActionController to expand the action item to fill the entire SlideActionPanel

Inheritance
Mixed-in types

Constructors

ActionController({int? index})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
index int?
index would be the index of action items of SlideActionPanel.actions, whatever the ActionPosition of SlideActionPanel is
no setter
progress double
the current progress of the animation during expanding or collapsing, it indicates the index item is expanding if the progress is increasing from 0 to 1, it indicates the index item is collapsing if the progress is decreasing from 1 to 0,
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
collapse(int index, {Curve curve = Curves.easeInOut, Duration duration = const Duration(milliseconds: 150)}) Future<void>
collapse the index item to the original position
createTicker(TickerCallback onTick) Ticker
Creates a ticker with the given callback.
override
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
expand(int index, {Curve curve = Curves.easeInOut, Duration duration = const Duration(milliseconds: 150)}) Future<void>
expand the index item to occupy the entire SlideActionPanel
hasExpandedAt(int index) bool
whether the index item is expanded
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
reset the controller without triggering layout or paint
toggle(int index, {Curve curve = Curves.easeInOut, Duration duration = const Duration(milliseconds: 150)}) Future<void>
toggle the index item between expanding and collapsing
toString() String
A string representation of this object.
inherited

Operators

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