repeat method

String repeat(
  1. int count
)

Repeats this string count times.

'-'.repeat(10); // '----------'

Implementation

String repeat(int count) {
  if (count < 0) {
    throw ArgumentError.value(count, 'count', 'must not be negative');
  }

  return List.filled(count, this).join();
}