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