close method Null safety

  1. @override
Future<void> close()
override

Asynchronously closes the input stream.

Implementation

@override
Future<void> close() async {
  buffer = <int>[];
  _length = 0;
}