setIsCollapsed method

dynamic setIsCollapsed(
  1. bool value
)

Sets the collapsed state of the chat.

This method follows the Open/Closed Principle by allowing external control of the chat's visual state.

Implementation

setIsCollapsed(bool value) {
  _isCollapsed = value;
  notifyListeners();
}