WidgetbookThemeData.fromResolver constructor

WidgetbookThemeData.fromResolver(
  1. Element element,
  2. bool isDarkTheme
)

Obtains a WidgetbookThemeData object from classes provided by the ThemeResolver

Implementation

factory WidgetbookThemeData.fromResolver(
  Element element,
  bool isDarkTheme,
) {
  return WidgetbookThemeData(
    name: element.name!,
    importStatement: element.importStatement,
    dependencies: element.dependencies,
    isDarkTheme: isDarkTheme,
  );
}