setIndicatorState method

  1. @visibleForTesting
  2. @protected
void setIndicatorState(
  1. IndicatorState newState
)

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);
}