RawDataStream.fromString constructor

RawDataStream.fromString(
  1. String contents,
  2. {Encoding encoding = utf8}
)

Implementation

factory RawDataStream.fromString(String contents,
        {Encoding encoding = utf8}) =>
    RawDataStream(encoding.encode(contents));