W3cubDocs

/Dart 2

asStringSink method

ClosableStringSink asStringSink ()
override

Returns this as a ClosableStringSink.

If used, this method must be the first and only call to this. It invalidates this. All further operations must be performed on the result.

Implementation

ClosableStringSink asStringSink() {
  return _StringConversionSinkAsStringSinkAdapter(this);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/StringConversionSinkMixin/asStringSink.html