WidgetAssembler constructor

WidgetAssembler({
  1. List<XmlWidgetBuilder>? builders,
})

Implementation

factory WidgetAssembler({
  List<XmlWidgetBuilder>? builders,
}) {
  final xmlBuilders = {
    for (final builder in _builtinBuilders) builder.name: builder
  };
  if (builders != null && builders.isNotEmpty) {
    builders.forEach((b) {
      xmlBuilders[b.name] = b;
    });
  }
  return _Assembler._(xmlBuilders);
}