BytesWriter constructor

BytesWriter({
  1. Encoding? stringEncoder,
})

Builds a new BytesWriter

  • stringEncoder: A optional string encoder, defaults to Utf8Codec

Implementation

BytesWriter({Encoding? stringEncoder})
    : _stringEncoder = stringEncoder ?? Utf8Codec();