removeEmptyBands method
void
removeEmptyBands()
Removes bands that have no artifacts from the collection.
First removes empty artifacts from each band, then removes bands that have no remaining artifacts.
Implementation
void removeEmptyBands() {
list.removeWhere((band) {
band.removeEmptyArtifacts();
return band.artifacts.isEmpty;
});
}