themeBuilder function

Builder themeBuilder(
  1. BuilderOptions options
)

Builder for the WidgetbookTheme annotation. Creates a .theme.widgetbook.json file for each .dart file containing a WidgetbookTheme annotation

Implementation

Builder themeBuilder(BuilderOptions options) {
  return JsonLibraryBuilder(
    ThemeResolver(),
    generatedExtension: '.theme.widgetbook.json',
    formatOutput: _formatOutput,
  );
}