onData method

void onData(
  1. List<int> data
)

Implementation

void onData(List<int> data) {
  buffer.addAll(data);
  controller.add(null);
}