I do love a good fractal - a titchy bit of code to produce a wonderful landscape or snowflake or, in this case, a tree. For the background see this clear article
Originally, this bit of code was part of a game produced during a jam. It was tidied up and put in a JS page. Conversion to Dart was straightforward.