给出以下要素
@PolymerRegister('x-custom')
class XCustom extends PolymerElement {
XCustom.created() : super.created();
static const hostAttributes = const {
'string-attribute': 'Value',
'boolean-attribute': true,
'tabindex': 0,
};
}
在
中动态生成结果<x-custom string-attribute="Value" boolean-attribute tabindex="0">
</x-custom>
在x-custom是孩子的另一个.html和.dart文件中访问静态设置的hostAttributes有哪些不同的方法?