main function

void main()

Implementation

void main() {
  int n = 10;
  List<int> fibonacciSequence = generateFibonacci(n);
  print(fibonacciSequence); // Output: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
}