CollapseCallback typedef

CollapseCallback = void Function({bool? isCollapsed})

A callback to call to collapse or expand an item.

  • Call with true to collapse.
  • Call with false to expand.
  • Call with no parameter to switch the state.

Implementation

typedef CollapseCallback = void Function({bool? isCollapsed});