Dashbook.dualTheme constructor

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

Implementation

Dashbook.dualTheme({
  Key? key,
  required ThemeData light,
  required ThemeData dark,
  bool initWithLight = true,
  this.title = '',
  this.usePreviewSafeArea = false,
  this.autoPinStoriesOnLargeScreen = false,
  this.navigatorKey,
  this.onChapterChange,
  this.localizationsDelegates,
  this.supportedLocales = const <Locale>[Locale('en', 'US')],
})  : _dualTheme = _DashbookDualTheme(
        dark: dark,
        light: light,
        initWithLight: initWithLight,
      ),
      theme = null,
      _multiTheme = null,
      super(key: key);