FAutoWidthPortalConstraints class final

Immutable layout constraints for a portal's RenderBox which width is automatically derived from the child.

Inheritance

Constructors

FAutoWidthPortalConstraints.new({double minHeight = 0.0, double maxHeight = double.infinity})
Creates a FPortalConstraints that automatically derive the width from the child.
const
FAutoWidthPortalConstraints.tightFor({double? height})
Creates a FPortalConstraints that automatically derive the width from the child and require the given height.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
isNormalized bool
Whether the constraint is expressed in a consistent manner.
no setteroverride
isTight bool
Whether there is exactly one size possible given these constraints.
no setteroverride
maxHeight double
The maximum height that satisfies the constraints.
final
minHeight double
The minimum height that satisfies the constraints.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

debugAssertIsValid({bool isAppliedConstraint = false, InformationCollector? informationCollector}) bool
Asserts that the constraints are valid.
inherited
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