clear method Null safety

void clear()

清除缓冲

Implementation

void clear() {
  _data.clear();
}