A ViewConfiguration that pretends the display is of a particular size. The size is in logical pixels. The resulting ViewConfiguration maps the given size onto the actual display using the ImageFit.contain algorithm.

Inheritance

Constructors

TestViewConfiguration({Size size: _kDefaultTestViewportSize })

Creates a TestViewConfiguration with the given size. Defaults to 800x600.

Properties

devicePixelRatio → double

The pixel density of the output surface.

read-only, inherited
hashCode → int

Get a hash code for this object.

read-only, inherited
orientation → int

The orientation of the output surface (aspirational).

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
size → Size

The size of the output surface.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

toHitTestMatrix() → Matrix4

Provides the transformation matrix that converts coordinates in the test coordinate space to coordinates in logical pixels on the real display.

toMatrix() → Matrix4

Creates a transformation matrix that applies the devicePixelRatio.

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited