Optional function that will be called when labeling each state in the tree, and can be used to customize the state names.
final String Function(StateKey key)? getStateName;