description

# ClosableStringSink.fromStringSink constructor Null safety

ClosableStringSink.fromStringSink(

1. StringSink sink,
2. void onClose(
   )

)

Creates a new instance combining a StringSink `sink` and a callback `onClose` which is invoked when the returned instance is closed.

## Implementation

    factory ClosableStringSink.fromStringSink(StringSink sink, void onClose()) =
        _ClosableStringSink;