SnapshotDevice class
Constructors
- SnapshotDevice({required String name, required Size size, SafeAreaInsets safeAreaInsets = const SafeAreaInsets(), TextScaler? textScaler, double pixelRatio = 1, SnapshotDeviceOrientation orientation = SnapshotDeviceOrientation.portrait, required TargetPlatform platform})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- orientation → SnapshotDeviceOrientation
-
final
- pixelRatio → double
-
final
- platform → TargetPlatform
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeAreaInsets → EdgeInsets
-
no setter
- size → Size
-
no setter
- textScaler → TextScaler?
-
final
Methods
-
call(
SnapshotDeviceOrientation orientation) → SnapshotDevice -
copyWith(
{String? name, Size? size, SafeAreaInsets? safeAreaInsets, SnapshotDeviceOrientation? orientation, TargetPlatform? platform}) → SnapshotDevice -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- iPhone8 → const SnapshotDevice
- iPhone11 → const SnapshotDevice
- iPhone15 → const SnapshotDevice
- iPhoneSE → const SnapshotDevice
- iPhoneSE1st → const SnapshotDevice
- iPhoneSE2nd → const SnapshotDevice
- pixel4 → const SnapshotDevice
- pixel6 → const SnapshotDevice
- xperia → const SnapshotDevice