ViewConfiguration class

The layout constraints for the root render object.

Implementers
Annotations

Constructors

ViewConfiguration({BoxConstraints physicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0), BoxConstraints logicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0), double devicePixelRatio = 1.0})
Creates a view configuration.
const
ViewConfiguration.fromView(FlutterView view)
Creates a view configuration for the provided FlutterView.
factory

Properties

devicePixelRatio double
The pixel density of the output surface.
final
hashCode int
The hash code for this object.
no setteroverride
logicalConstraints BoxConstraints
The constraints of the output surface in logical pixel.
final
physicalConstraints BoxConstraints
The constraints of the output surface in physical pixel.
final
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
shouldUpdateMatrix(ViewConfiguration oldConfiguration) bool
Returns whether toMatrix would return a different value for this configuration than it would for the given oldConfiguration.
toMatrix() Matrix4
Creates a transformation matrix that applies the devicePixelRatio.
toPhysicalSize(Size logicalSize) Size
Transforms the provided Size in logical pixels to physical pixels.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override