updatePercent method

dynamic updatePercent(
  1. int sectionIndex,
  2. double percent
)

Implementation

updatePercent(int sectionIndex, double percent) {
  if (_percent == percent && _switchingSectionIndex == sectionIndex) {
    return;
  }
  _switchingSectionIndex = sectionIndex;
  _percent = percent;
  notifyListeners();
}