абстрактный метод operator *
- int times
Создаёт новую строку, объединяя эту строку с самой собой заданное число раз.
Результат str * n эквивалентен str + str + ...(n раз)... + str.
const string = 'Dart'; final multiplied = string * 3; print(multiplied); // 'DartDartDart'
Возвращает пустую строку, если times равно нулю или отрицательно.
Реализация
String operator *(int times);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/String/operator_multiply.html