toRepeat method

String toRepeat(
  1. int n
)

Repeats the given string n times. Example: "hello" -> "hellohello"

Implementation

String toRepeat(int n) => repeat(this, n);