onStateChanged property

OnStateChanged? onStateChanged
final

Called on every indicator state change.

There is no need to use setState in this function, as the indicator will be rebuilt automatically.

Implementation

final OnStateChanged? onStateChanged;