repeatString method

String repeatString(
  1. String str,
  2. int count
)

Repeats a string a given number of times.

Implementation

String repeatString(String str, int count) {
  return List.filled(count, str).join();
}