LCOV - code coverage report
Current view: | top level - src/models/organizers - category.dart (source / functions) |  |  | Hit | Total | Coverage
Test: | lcov.info |  | Lines: | 6 | 6 | 100.0 %
Date: | 2021-10-11 06:57:03 |  | Functions: | 0 | 0 | -

              Line data    Source code
           1             : import 'package:widgetbook/src/models/organizers/expandable_organizer.dart';
           2             : import 'package:widgetbook/src/models/organizers/folder.dart';
           3             : import 'package:widgetbook/src/models/organizers/widget_element.dart';
           4             :
           5             : /// Categories help to organize WidgetElements and Stories into different areas.
           6             : class Category extends ExpandableOrganizer {
           7           2 :   Category({
           8             :     required String name,
           9             :     List<Folder>? folders,
          10             :     List<WidgetElement>? widgets,
          11           2 :   }) : super(
          12             :           name: name,
          13             :           folders: folders,
          14             :           widgets: widgets,
          15             :           isExpanded: true,
          16             :         ) {
          17           4 :     for (final ExpandableOrganizer organizer in this.folders) {
          18           2 :       organizer.parent = this;
          19             :     }
          20           4 :     for (final ExpandableOrganizer organizer in this.widgets) {
          21           2 :       organizer.parent = this;
          22             :     }
          23             :   }
          24             : }

Generated by: LCOV version 1.15