close method
Closes the associated writable stream.
Returns a Future, which fulfills if all remaining chunks were successfully written before the close, or throws an error if a problem was encountered during the process.
Implementation
Future<void> close() => promiseToFuture(callMethod(this, "close", []));