Adds the next chunk to this.
chunk
this
Adds the substring defined by start and end-exclusive to this.
start
end
If isLast is true closes this.
isLast
true
void addSlice(String str, int start, int end, bool isLast);