spacesCount property

int get spacesCount

Counts the number of space characters among the artifacts in this band.

Returns: The number of artifacts that match a space character.

Implementation

int get spacesCount => artifacts.fold(
      0,
      (count, a) => a.characterMatched == ' ' ? count + 1 : count,
    );