ExpandableSliverListController<T> class

Controller that'll be used to switch the list between collapsed and expanded

Inheritance

Constructors

ExpandableSliverListController({ExpandableSliverListStatus initialStatus = ExpandableSliverListStatus.expanded})
Controller that'll be used to switch the list between collapsed and expanded.

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
listKey GlobalKey<SliverAnimatedListState>
List key that is given to the sliver animated list used under the covers
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ExpandableSliverListStatus
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
collapse() → void
Collapse the list this controller is connected to
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() → void
Expand the list this controller is connected to
init({required List<T> items, required ExpandableItemBuilder<T> builder, required Duration duration, ExpandableSliverListStatus? initialState, bool expandOnInitialInsertion = false}) → void
Initializer to be called by the expandable list this is assigned to
insertItem(T item, int index) → void
Insert the given item at the given index in the list
insertItems(List<T> items, List<int> indices) → void
Inserts the given items into the given indices.
isCollapsed() bool
Returns true if the list is currently collapsed. Otherwise false
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
numItemsDisplayed() int
Gets the number of items currently displayed in the list. This can be different from the number of items in the list.
removeItem(int index) → void
Remove the item at the given index
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setItems(List<T> items) → void
Sets the items in this collection.
toString() String
A string representation of this object.
inherited

Operators

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