DefaultShrunkViewportInset class

The default inset at which the current page will be fully shrunk.

The preferred inset value is the top padding plus 16.0 pixels, but if it is less than the lower limit, it will be clamped to that value. The lower limit is calculated by subtracting the height of the shrunk page from the height of the viewport. This clamping process is necessary to prevent unwanted white space between the bottom of the page and the viewport.

Inheritance

Constructors

DefaultShrunkViewportInset.new()
Create the default shrunk viewport inset.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toConcreteValue(ViewportMetrics metrics) double
Calculate the concrete pixels represented by this object from the current viewport dimensions.
override
toScrollOffset(ViewportMetrics metrics) double
Convert the inset to a scroll offset for ScrollPosition.
inherited
toString() String
A string representation of this object.
inherited

Operators

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