showWords method

void showWords(
  1. List<String> _wordList
)

Simple listing of words.

Implementation

void showWords(List<String> _wordList) {
  print('\n       * * *     WORD-GALLERY    * * * ');
  int swCount = 0;
  for (var x = 0; x < _wordList.length; x++) {
    print(_wordList[x]);
    swCount++;
    if (swCount == 2) {
      swCount = 0;
      print(' ');
    }
  }
  print('       * * *     WORD-GALLERY  done  * * * \n');
}