LineElement does have the x2 attribute as you can see in the docs http://api.dartlang.org/docs/releases/latest/dart_svg/LineElement.html#x2.
You can set x2 through either of the following methods:
line.attributes["x2"] = "220";
line.$dom_setAttribute("x2", "220");