read method
Return the next howMany
items, or as many as there are remaining.
Advance the stream by that many positions.
Implementation
dynamic read([int howMany = 1]) {
var result = peek(howMany);
index += howMany;
return result;
}
Return the next howMany
items, or as many as there are remaining.
Advance the stream by that many positions.
dynamic read([int howMany = 1]) {
var result = peek(howMany);
index += howMany;
return result;
}