DVDisplayScaling class

How Dartvel sizes the whole interface for the screen.

DVDisplayScaling.auto (the default) leaves phones, tablets and desktops alone, lays a television or a 4K signage panel out as a 1280 x 720 screen drawn larger, and lays a watch out as a 320-wide screen drawn smaller. DVDisplayScaling.off draws everything at 1; DVDisplayScaling.fixed draws at one factor everywhere.

Set it in pubspec.yaml (dartvel: display: scaling: auto | off | 1.5) or in code with DV.Platform.screen.scaling = ....

Annotations

Constructors

DVDisplayScaling.auto()
const
DVDisplayScaling.fixed(double factor)
const
DVDisplayScaling.off()
const

Properties

enabled → bool
final
factor → double?
The one factor of a fixed scaling; null for auto and off.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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.
override