DisplayMetrics class
Derived metrics: the scale factor and logical resolution, plus the intermediate values for diagnostics.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logicalHeight → double
-
final
- logicalPixelAngleDegrees → double?
-
Visual angle actually subtended by one logical pixel, in degrees, or
null if density or distance is unknown. Compare against
logicalPixelVisualAngleDegrees; 20/20 acuity is ~0.0167 degrees.
no setter
- logicalWidth → double
-
final
- pxPerMm → double?
-
Derived density, or null if unknown/invalid.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
Physical pixels per logical pixel. Integer-snapped or quantized to
8 mantissa bits.
final
- touchScale → double?
-
The touch-target floor, if one was requested and density is known.
final
- usedFallback → bool
-
True if the 96dpi-monitor fallback was used because density or viewing
distance were unknown or invalid.
final
- viewingDistanceMm → double?
-
Viewing distance used, or null if unknown.
final
- visualScale → double
-
The perceptual scale before integer snapping / quantization, after
DisplayModel.userScaleFactor.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited