DevicePreviewData class
A DevicePreview configuration snapshot that can be serialized to be persisted between sessions.
- Annotations
-
- @freezed
Constructors
-
DevicePreviewData({@Default(true) bool isToolbarVisible, @Default(true) bool isEnabled, @Default(Orientation.portrait) Orientation orientation, String? deviceIdentifier, @Default('en-US') String locale, @Default(true) bool isFrameVisible, @Default(false) bool isDarkMode, @Default(false) bool boldText, @Default(false) bool isVirtualKeyboardVisible, @Default(false) bool disableAnimations, @Default(false) bool highContrast, @Default(false) bool invertColors, @Default(<String, Map<String, dynamic>>{}) Map<
String, Map< pluginData, @Default(1.0) double textScaleFactor, DevicePreviewSettingsData? settings, @Default(null) CustomDeviceInfoData? customDevice})String, dynamic> > -
Create a new DevicePreviewData configuration from all
properties.
constfactory
-
DevicePreviewData.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
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