String repeat(String source, int times) { String value = ""; for (var i = 0; i < times; i++) { value += source; } return value; }