TestViewConfiguration class
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 BoxFit.contain algorithm.
- Inheritance
-
- Object
- ViewConfiguration
- TestViewConfiguration
Constructors
- TestViewConfiguration({Size size = _kDefaultTestViewportSize, FlutterView? window})
-
Deprecated. Will be removed in a future version of Flutter.
factory
- TestViewConfiguration.fromView({required FlutterView view, Size size = _kDefaultTestViewportSize})
- Creates a TestViewConfiguration with the given size and view.
Properties
- devicePixelRatio → double
-
The pixel density of the output surface.
finalinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- size → Size
-
The size of the output surface.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited