StringView constructor

StringView(
  1. String buffer,
  2. {bool isRestBlock = false}
)

Create a new StringView wrapping buffer.

The cursor will initially be positioned at the start of buffer.

Implementation

StringView(this.buffer, {bool isRestBlock = false}) {
  this.isRestBlock = isRestBlock;
}