updateSections method

void updateSections(
  1. List<CPListSection> newSections
)

Implementation

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