I did it, but not in time for the challenge.
And so I’m the only one to have solve it in Dart XD.
I would put it in Hard rather than Medium, because nothing in the puzzle text warns against overflow. This is the kind of puzzle where one can have a “working” result without exceptions that is not the expected one, and it requires a good knowledge of the language to understand where the error could stand.