WindowConfigData class
A Data class that describe a device properties that will impact design.
Constructors
- WindowConfigData(String name, {required Size size, required double pixelDensity, required TargetPlatform targetPlatform, required BorderRadius borderRadius, required EdgeInsets safeAreaPadding, Size? keyboardSize, Size? notchSize, PunchHoleData? punchHole, HomeIndicatorData? homeIndicator})
Properties
- borderRadius → BorderRadius
-
This border radius describe the physical rounded corner of a device.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- homeIndicator → HomeIndicatorData?
-
Describe the OS gesture indicator on bottom of apps, expressed in
dp
.final - keyboardSize → Size?
-
Describes the size of virtual keyboard of the device in
dp
.final - name → String
-
final
- notchSize → Size?
-
Describe the size of the device physical screen top notch in
dp
.final - padding → FakeViewPadding
-
This padding describe the size taken by the hardware layer.
Like the notch on the iPhone X.
final
- physicalSize → Size
-
This represent the size of the device, expressed in
px
.final - pixelDensity → double
-
Describe the pixel density of the device.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- punchHole → PunchHoleData?
-
Describe the size of the device physical screen camera punch hole in
dp
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
Describes the size of the physical screen of the device in
dp
.final - stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - targetPlatform → TargetPlatform
-
Device Platform.
final
- viewInsets → FakeViewPadding
-
This padding describe the size used by an opened keyboard.
final
Methods
-
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