defaultMapElementToWidget<W> static method
Default mapping function to convert an Element to a widget of type W
.
This function is used when no custom mapping is provided in the constructor.
Implementation
static W defaultMapElementToWidget<W>(Element element) {
return element.widget as W;
}