DevicePreviewSettingsData constructor
const
DevicePreviewSettingsData({
- @Default(DevicePreviewToolBarPositionData.bottom) DevicePreviewToolBarPositionData toolbarPosition,
- @Default(DevicePreviewToolBarThemeData.dark) DevicePreviewToolBarThemeData toolbarTheme,
- @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;