io_utils_native library

A small library that was split off of io_utils when Flutter on the browser became more mature. The small utility class in this library depends on dart.io, so it was split off into this "native-only" library so that io_utils wouldn't need to depend on dart.io.

Classes

FlushingIOSink
A wrapper around an IOSink that ensures that all data is flushed before the IOSink is closed. This is needed when an IOSink is being used with an API obeying the Sink contract, which includes close but not flush.