Multi-lines string in Dart

I’m not sure if I follow you here — do you want this?

    var symbole = """
      *<br />
      ***<br />
    *****<br />
  *******<br />
*********<br />""";
var element03 = query('#exercice03');
element03.innerHTML = symbole;

I just added the break lines

So as Matt B said, the output of print() is differently formatted than HTML on the browser.

Leave a Comment

File not found.