getText method

String getText()

Retrieves the concatenated text from all artifacts in the band.

Iterates through all artifacts in the band and combines their matched characters into a single string.

Returns: A string containing all the text from the artifacts in this band.

Implementation

String getText() {
  String text = '';

  for (final Artifact a in artifacts) {
    text += a.matchingCharacter;
  }
  return text;
}