finalize method Null safety

Stream<List<int>> finalize()

Implementation

Stream<List<int>> finalize() {
  if (isFinalized) {
    throw StateError("Can't finalize a finalized MultipartFile.");
  }
  _isFinalized = true;
  return _stream;
}