encodingString property

String get encodingString

Implementation

String get encodingString {
  if (encoding == TextEncoding.UTF8) {
    return "UTF-8";
  } else {
    // encoding == TextEncoding.UTF16
    return "UTF-16";
  }
}