ViewportMetrics mixin
A description of the viewport state.
The state of the viewport is described by the 2 mesurements: fraction and inset. The fraction indicates how much space each page should occupy in the viewport, and the inset is the distance from the top of the viewport to the top of the current page viewport.
- Mixin applications
Properties
- deltaFraction → double
-
Calculate the difference between minFraction and maxInset.
no setter
- deltaInset → double
-
Calculate the difference between minInset and maxInset.
no setter
- dimensions → ViewportDimensions
-
The mesurements of the viewport.
no setter
- expandedInset → double
-
The upper bound of the inset at which the current page viewport is fully expanded.
no setter
- fraction → double
-
The fraction of the viewport that the each page should occupy.
no setter
- hasDimensions → bool
-
Indicates if dimensions property is available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inset → double
-
The distance from the top of the viewport to the top of the current page vieewport.
no setter
- isPageExpanded → bool
-
Indicates if the current page viewport is fully expanded.
no setter
- isPageShrunk → bool
-
Indicates if the current page viewport is fully shrunk.
no setter
- maxFraction → double
-
The upper bound of fraction.
no setter
- maxInset → double
-
The upper bound of the inset.
no setter
- minFraction → double
-
The lower bound of fraction.
no setter
- minInset → double
-
The lower bound of the inset.
no setter
- pageDimensions → PageViewportDimensions
-
The measurements of the current page viewport.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shrunkInset → double
-
The lower bound of the inset at which the current page viewport is fully shrunk.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited