widgetbookBuilder function

Builder widgetbookBuilder(
  1. BuilderOptions options
)

Builder for the WidgetbookApp annotation. Creates exactly one app.widgetbook.dart file next to the file containing the WidgetbookApp annotation.

Implementation

Builder widgetbookBuilder(BuilderOptions options) {
  return LibraryBuilder(
    WidgetbookGenerator(),
    generatedExtension: '.widgetbook.dart',
  );
}