I have the following taken from http://www.dartdocs.org/documentation/core_elements/0.1.0+1/index.html#core_elements/core_elements-core_menu.CoreMenu
<section>
<core-menu selected="0" on-core-select="{{selectAction}}">
<core-item icon="settings" label="Settings"></core-item>
<core-item icon="dialog" label="Dialog"></core-item>
<core-item icon="search" label="Search"></core-item>
</core-menu>
</section>
void selectAction (e, detail)
{
if ( e.target.isSelected)
{
var selectedItem = detail.item;
print ( selectedItem );
}
}
Even just trying to run the app with the code without attempting a selection gives the following
Exception: Class 'CoreMenu' has no instance getter 'isSelected'.
NoSuchMethodError: method not found: 'isSelected'
Receiver: Instance of 'CoreMenu'
Is there bug here or the code is just wrong
An example from an app of mine