repeatValue<T> function
Returns a list containing value repeated n times.
Example:
repeatValue('x', 3); // ['x', 'x', 'x']
Audited: 2026-06-12 11:26 EDT
Implementation
List<T> repeatValue<T>(T value, int n) => List<T>.filled(n, value);