removeItem method

  1. @internal
bool removeItem(
  1. int index
)

Removes the item at the given index, returning true if removed.

Implementation

@internal
bool removeItem(int index) {
  if (_expanded.length <= _min && _expanded.contains(index)) {
    return false;
  }

  final removed = controllers.remove(index);
  _expanded.remove(index);
  return removed != null;
}