defaultMapElementToWidget<W> static method

W defaultMapElementToWidget<W>(
  1. Element element
)

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;
}