repeat function Null safety
Repeats the given string n times.
Implementation
String repeat(String string, int n) {
return List.filled(n, string).join();
}
Repeats the given string n times.
String repeat(String string, int n) {
return List.filled(n, string).join();
}