printSummary method

void printSummary()

Prints a compact summary of everything written.

Implementation

void printSummary() {
  final verb = dryRun ? 'would be created' : 'created';
  print('\n${_created.length} file(s) $verb'
      '${_overwritten.isNotEmpty ? ', ${_overwritten.length} overwritten' : ''}'
      '${_skipped.isNotEmpty ? ', ${_skipped.length} skipped' : ''}.');
}