updateSections method

void updateSections(
  1. List<AAListSection> newSections
)

Implementation

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