I'm iOS Developer and new for Flutter. In the Swift language If we want to repeat the same value for a specific time in the Array.

**Ex.**

If In the Array I want to repeat **0** for **5** times then I can do by one line of code like below.

```
let fiveZeros = Array(repeating: "0", count: 5)
print(fiveZeros)
// Prints "["0", "0", "0", "0", "0"]"

```

[init(repeating:count:) function used.](https://developer.apple.com/documentation/swift/array/1641692-init)

So I'm looking for any function or code that works in Flutter.

I do googling but didn't find a solution.