getStateName property

String Function(StateKey key)? getStateName
final

Optional function that will be called when labeling each state in the tree, and can be used to customize the state names.

Implementation

final String Function(StateKey key)? getStateName;