add method

void add(
  1. T item
)

Implementation

void add(T item) {
  _buffer.add(item);
  notifyListeners(); // Notify listeners after adding
}