libraryBuilder function

Library libraryBuilder(
  1. List<Class> widgets, {
  2. Iterable<Directive> directives = const [],
})

Implementation

Library libraryBuilder(
  List<Class> widgets, {
  Iterable<Directive> directives = const [],
}) {
  final library = Library(
    (b) => b
      ..body.addAll(widgets)
      ..directives.addAll(directives),
  );

  return library;
}