build method
Returns a new rendered component instance with the specified props
and childrenArgs
.
Necessary to work around DDC dart.dcall
issues in github.com/dart-lang/sdk/issues/29904,
since invoking the function directly doesn't work.
Implementation
@override
ReactElement build(Map props, [List<ReactNode> childrenArgs = const []]) {
var children = convertArgsToChildren(childrenArgs);
children = listifyChildren(children);
return React.createElement(type, generateExtendedJsProps(props, children, defaultProps: defaultProps), children);
}