setIndicatorState method
Implementation
@visibleForTesting
@protected
void setIndicatorState(IndicatorState newState) {
final onStateChanged = widget.onStateChanged;
if (onStateChanged != null && controller.state != newState) {
onStateChanged(IndicatorStateChange(controller.state, newState));
}
controller.setIndicatorState(newState);
}