operator * method

String operator *(
  1. int repeats
)

Multiplies a string like python does. Example: "abc" * 3 == "abcabcabc"

Implementation

String operator *(int repeats) => List.filled(repeats, this).join();