putS method

String putS(
  1. int n, [
  2. bool capital = false
])

Implementation

String putS(int n, [bool capital = false]) {
  if (n > 1) {
    return capital ? 'S' : 's';
  } else {
    return '';
  }
}