DevicePreviewData class

A DevicePreview configuration snapshot that can be serialized to be persisted between sessions.

Annotations
  • @freezed

Constructors

DevicePreviewData({@Default.new(true) bool isToolbarVisible, @Default.new(true) bool isEnabled, @Default.new(Orientation.portrait) Orientation orientation, String? deviceIdentifier, @Default.new('en-US') String locale, @Default.new(true) bool isFrameVisible, @Default.new(false) bool isDarkMode, @Default.new(false) bool boldText, @Default.new(false) bool isVirtualKeyboardVisible, @Default.new(false) bool disableAnimations, @Default.new(false) bool highContrast, @Default.new(false) bool accessibleNavigation, @Default.new(false) bool invertColors, @Default.new(<String, Map<String, dynamic>>{}) Map<String, Map<String, dynamic>> pluginData, @Default.new(1.0) double textScaleFactor, DevicePreviewSettingsData? settings, @Default.new(null) CustomDeviceInfoData? customDevice})
Create a new DevicePreviewData configuration from all properties.
const
factory
DevicePreviewData.fromJson(Map<String, dynamic> json)
factory

Properties

accessibleNavigation → bool
Indicate whether the navigation is in accessible mode.
no setterinherited
boldText → bool
Indicate whether texts are forced to bold.
no setterinherited
copyWith → $DevicePreviewDataCopyWith<DevicePreviewData>
no setterinherited
customDevice → CustomDeviceInfoData?
The custom device configuration
no setterinherited
deviceIdentifier → String?
The currently selected device.
no setterinherited
disableAnimations → bool
Indicate whether animations are disabled.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
highContrast → bool
Indicate whether the highcontrast mode is activated.
no setterinherited
invertColors → bool
Indicate whether image colors are inverted.
no setterinherited
isDarkMode → bool
Indicate whether the mode is currently dark.
no setterinherited
isEnabled → bool
Indicate whether the device simulation is enabled.
no setterinherited
isFrameVisible → bool
Indicate whether the frame is currently visible.
no setterinherited
isToolbarVisible → bool
Indicate whether the toolbar is visible.
no setterinherited
isVirtualKeyboardVisible → bool
Indicate whether the virtual keyboard is visible.
no setterinherited
locale → String
The currently selected device locale.
no setterinherited
orientation → Orientation
The current orientation of the device
no setterinherited
pluginData → Map<String, Map<String, dynamic>>
Indicate whether image colors are inverted.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → DevicePreviewSettingsData?
no setterinherited
textScaleFactor → double
The current text scaling factor.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited