| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:immi/dart/immi.dart'; | 5 import 'package:immi/dart/immi.dart'; |
| 6 | 6 |
| 7 // Export generated code for nodes in menu.immi | 7 // Export generated code for nodes in menu.immi |
| 8 import 'package:immi/dart/menu.dart'; | 8 import 'package:immi/dart/menu.dart'; |
| 9 export 'package:immi/dart/menu.dart'; | 9 export 'package:immi/dart/menu.dart'; |
| 10 | 10 |
| 11 class MenuItem { | 11 class MenuItem { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 28 void add(MenuItem item) { | 28 void add(MenuItem item) { |
| 29 items.add(item); | 29 items.add(item); |
| 30 } | 30 } |
| 31 | 31 |
| 32 MenuNode present(Node previous) { | 32 MenuNode present(Node previous) { |
| 33 return new MenuNode( | 33 return new MenuNode( |
| 34 title: title, | 34 title: title, |
| 35 items:items.map((item) => item.present(null)).toList()); | 35 items:items.map((item) => item.present(null)).toList()); |
| 36 } | 36 } |
| 37 } | 37 } |
| OLD | NEW |