close method
If the underlying StringSink is an IOSink, flushes and closes it. If it is a ClosableStringSink, simply close it. This method returns the same future as done. Multiple calls to close are allowed but only the first one will have an effect.
Implementation
Future close() => _wrapper.close();