OverflowBounds class
Represents the bounds of content that overflows beyond the viewport edges.
OverflowBounds describes how much content extends beyond each edge of the viewport in a layout container. This is used to determine scrolling needs and handle overflow behavior.
Positive values indicate content extending beyond the viewport:
- top: Content above the viewport top edge
- bottom: Content below the viewport bottom edge
- left: Content to the left of the viewport left edge
- right: Content to the right of the viewport right edge
A value of 0 indicates no overflow in that direction.
Constructors
- OverflowBounds.new({required double top, required double bottom, required double left, required double right})
-
Creates an OverflowBounds with the specified overflow amounts.
const
Properties
- bottom → double
-
The amount of content overflowing below the viewport bottom edge.
final
- hasBottomOverflow → bool
-
Returns true if there is overflow below the viewport.
no setter
- hashCode → int
-
Returns the hash code for this OverflowBounds.
no setteroverride
- hasLeftOverflow → bool
-
Returns true if there is overflow to the left of the viewport.
no setter
- hasOverflow → bool
-
Returns true if there is overflow in any direction.
no setter
- hasRightOverflow → bool
-
Returns true if there is overflow to the right of the viewport.
no setter
- hasTopOverflow → bool
-
Returns true if there is overflow above the viewport.
no setter
- left → double
-
The amount of content overflowing to the left of the viewport left edge.
final
- right → double
-
The amount of content overflowing to the right of the viewport right edge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double
-
The amount of content overflowing above the viewport top edge.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of this OverflowBounds.
override
Operators
-
operator ==(
Object other) → bool -
Compares this OverflowBounds with another object for equality.
override
Constants
- zero → const OverflowBounds
- A constant representing no overflow in any direction.