The interior and exterior dimensions of a viewport.
Constants
- zero → ViewportDimensions
-
A viewport that has zero size, both inside and outside.
const ViewportDimensions()
Constructors
- ViewportDimensions({Size contentSize: Size.zero, Size containerSize: Size.zero })
-
Creates dimensions for a viewport.
const
Properties
- containerSize → Size
-
The size of the outside of the viewport.
read-only - contentSize → Size
-
The size of the content inside the viewport.
read-only - hashCode → int
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
getAbsolutePaintOffset(
{Offset paintOffset, ViewportAnchor anchor }) → Offset -
Returns the offset at which to paint the content, accounting for the given anchor and the dimensions of the viewport.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited