PreviewThemeData constructor

const PreviewThemeData({
  1. ThemeData? materialLight,
  2. ThemeData? materialDark,
  3. CupertinoThemeData? cupertinoLight,
  4. CupertinoThemeData? cupertinoDark,
})

Creates a collection of ThemeData and CupertinoThemeData instances for use in widget previews.

If a theme isn't provided for a specific configuration, no theme data will be applied and the default theme will be used.

Implementation

const PreviewThemeData({
  this.materialLight,
  this.materialDark,
  this.cupertinoLight,
  this.cupertinoDark,
});