toString method
Returns the current contents as a string using UTF-8 encoding.
encoding
- The character encoding to use (defaults to UTF-8)
Returns the contents as a string.
Implementation
@override
String toString([String encoding = 'utf-8']) {
return String.fromCharCodes(_buffer.take(_count));
}