Dashbook.multiTheme constructor

Dashbook.multiTheme({
  1. Key? key,
  2. required Map<String, ThemeData> themes,
  3. String? initialTheme,
  4. String title = '',
  5. bool usePreviewSafeArea = false,
  6. bool autoPinStoriesOnLargeScreen = false,
  7. GlobalKey<NavigatorState>? navigatorKey,
  8. OnChapterChange? onChapterChange,
  9. List<LocalizationsDelegate>? localizationsDelegates,
  10. List<Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
})

Implementation

Dashbook.multiTheme({
  Key? key,
  required Map<String, ThemeData> themes,
  String? initialTheme,
  this.title = '',
  this.usePreviewSafeArea = false,
  this.autoPinStoriesOnLargeScreen = false,
  this.navigatorKey,
  this.onChapterChange,
  this.localizationsDelegates,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
})  : _multiTheme =
          _DashbookMultiTheme(themes: themes, initialTheme: initialTheme),
      theme = null,
      _dualTheme = null,
      super(key: key);