removeFirst method
Implementation
String removeFirst() {
if (queue.isNotEmpty) {
String piece = queue.removeFirst();
charLength -= piece.length;
startCursor += piece.length;
return piece;
}
throw StateError("No pieces in queue to remove");
}