totalArtifacts property

int get totalArtifacts

Gets the number of characters across all bands in the collection.

Counts the total number of matched characters in all artifacts within all bands.

Returns the total character count.

Implementation

int get totalArtifacts {
  int countCharacters = 0;

  for (final band in list) {
    countCharacters += band.artifacts.length;
    countCharacters += 1; // For NewLine '\n'
  }
  // last \n needs to be discounted since, the returned string will not include the last '\n'
  countCharacters--;
  return countCharacters;
}