FAutoHeightPortalConstraints class final
Immutable layout constraints for a portal's RenderBox which height is automatically derived from the child.
- Inheritance
-
- Object
- Constraints
- FPortalConstraints
- FAutoHeightPortalConstraints
Constructors
- FAutoHeightPortalConstraints.new({double minWidth = 0.0, double maxWidth = double.infinity})
-
Creates a FPortalConstraints that automatically derive the height from the child.
const
- FAutoHeightPortalConstraints.tightFor({double? width})
-
Creates a FPortalConstraints that automatically derive the height from the child and require the given width.
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
- maxWidth → double
-
The maximum width that satisfies the constraints.
final
- minWidth → double
-
The minimum width 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