finish method Null safety

void finish()

Implementation

void finish() {
  _flushPending();
}