updateSections method
Implementation
void updateSections(List<CPListSection> newSections) {
final copy = List<CPListSection>.from(newSections);
sections
..clear()
..addAll(copy);
}
void updateSections(List<CPListSection> newSections) {
final copy = List<CPListSection>.from(newSections);
sections
..clear()
..addAll(copy);
}