DevicePreviewSettingsData constructor

const DevicePreviewSettingsData({
  1. @Default(DevicePreviewToolBarPositionData.bottom) DevicePreviewToolBarPositionData toolbarPosition,
  2. @Default(DevicePreviewToolBarThemeData.dark) DevicePreviewToolBarThemeData toolbarTheme,
  3. @Default(DevicePreviewBackgroundThemeData.light) DevicePreviewBackgroundThemeData backgroundTheme,
})

Create a new set of settings.

Implementation

const factory DevicePreviewSettingsData({
  /// The toolbar position.
  @Default(DevicePreviewToolBarPositionData.bottom)
      DevicePreviewToolBarPositionData toolbarPosition,

  /// The theme of the toolbar.
  @Default(DevicePreviewToolBarThemeData.dark)
      DevicePreviewToolBarThemeData toolbarTheme,

  /// The theme of the background.
  @Default(DevicePreviewBackgroundThemeData.light)
      DevicePreviewBackgroundThemeData backgroundTheme,
}) = _DevicePreviewSettingsData;