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 = '';

  artifacts.forEach((a) => text += a.matchingCharacter);
  return text;
}