WidgetbookThemeData constructor

WidgetbookThemeData({
  1. required String name,
  2. required String importStatement,
  3. required List<String> dependencies,
  4. required bool isDarkTheme,
})

Creates a new instance of WidgetbookThemeData

name is defined as the identifier of the annotated element importStatement is the statement required to include the annotated element in the Widgetbook dependencies are the import statements defined in the file in which the annotation is used isDarkTheme specified whether the theme is dark or light

Implementation

WidgetbookThemeData({
  required String name,
  required String importStatement,
  required List<String> dependencies,
  required this.isDarkTheme,
}) : super(
        name: name,
        importStatement: importStatement,
        dependencies: dependencies,
      );