DesignSwipeActionsController class
Opens and closes a DesignSwipeActions row from outside, and says
whether it is open, as flutter_slidable's controller does. The caller
makes it, gives it to one row, and disposes it; with no row it does
nothing.
DesignSwipeActions(controller: controller, endActions: [DesignSwipeAction(label: 'Archive', onPressed: controller.close)], actionBuilder: (context, action, details) => Text(action.label), child: const Text('Message'))
- Inheritance
-
- Object
- ChangeNotifier
- DesignSwipeActionsController
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 a side of the row is open (or opening).
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
-
close(
) → void - Closes the row, on its spring.
-
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
-
openEndActions(
) → void - Opens the end side's actions, on the row's spring.
-
openStartActions(
) → void - Opens the start side's actions, on the row's spring.
-
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