void printState(State state, {int indent = 0}) { print(indentString(indent) + stateToString(state)); }