Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 part of widgets; | |
| 2 | |
| 3 abstract class StyleComponent extends Component { | |
| 4 Node content; | |
| 5 | |
| 6 // Subclasses should implement this getter to provide their style information. | |
| 7 Style get style => null; | |
| 8 | |
| 9 StyleComponent({ Object key, this.content }) : super(key: key); | |
| 10 | |
| 11 Node render() { | |
| 12 return new Container( | |
| 13 style: style, | |
| 14 children: content == null ? [] : [content] | |
| 15 ); | |
| 16 } | |
| 17 } | |
| OLD | NEW |