repeat method

String repeat(
  1. int count
)

Repeats this string count times.

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

Implementation

String repeat(int count) => List.filled(count, this).join();