Patrice Chalin 9ec291d63d docs(guide/dart): hierarchical-dependency-injection
* A full first version of the prose. Makes use of Dart example, of
course.
* Tweaks to Dart example code; manually tested in Dartium under checked
mode.

closes #1142
2016-04-22 16:56:27 -07:00

13 lines
164 B
Dart

// #docregion
class Hero {
String name;
String power;
Hero clone() {
return new Hero()
..name = name
..power = power;
}
}
// #enddocregion