concept html snippet in category dart

appears as: HTML snippets
Dart in Action

This is an excerpt from Manning's book Dart in Action.

You’ll use string interpolation and the print function a lot when experimenting with Dart, logging variables to help with debugging, and inserting values into HTML snippets.

Fortunately, for HTML snippets, we don’t care whether the final string is multiline, but we do care about readable code. Dart lets you automatically concatenate adjacent string literals (if you have two strings next to each other, even across line breaks, they’ll be concatenated). Therefore, the following two string declarations store identical (but not multiline) values: