ViewportConfiguration class

A configuration for the viewport.

Constructors

ViewportConfiguration({bool overshootEffect = false, bool extendPage = false, double minFraction = 0.9, double maxFraction = 1.0, ViewportInset shrunkInset = ViewportInset.shrunk, ViewportInset? initialInset, List<ViewportInset> extraSnapInsets = const []})
Create a configuration for standard use cases.
factory
ViewportConfiguration.raw({bool extendPage = false, double minFraction = 0.9, double maxFraction = 1.0, ViewportInset minInset = ViewportInset.expanded, ViewportInset maxInset = ViewportInset.shrunk, ViewportInset shrunkInset = ViewportInset.shrunk, ViewportInset expandedInset = ViewportInset.expanded, ViewportInset initialInset = ViewportInset.shrunk, List<ViewportInset> snapInsets = const [ViewportInset.expanded, ViewportInset.shrunk]})
A general constructor for ViewportConfiguration.
const

Properties

expandedInset ViewportInset
The upper bound of the inset at which the current page viewport is fully expanded.
final
extendPage bool
If true, the page extends to the bottom of the viewport when it fully expanded, even if the viewport has non-zero bottom padding.
final
hashCode int
The hash code for this object.
no setteroverride
initialInset ViewportInset
The initial viewport inset.
final
maxFraction double
The upper bound of fraction.
final
maxInset ViewportInset
The upper bound of the inset.
final
minFraction double
The lower bound of fraction.
final
minInset ViewportInset
The lower bound of the inset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shrunkInset ViewportInset
The lower bound of the inset at which the current page viewport is fully shrunk.
final
snapInsets List<ViewportInset>
The list of insets that the viewport will snap to.
final

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.
override

Constants

defaultConfiguration → const ViewportConfiguration
A const object to be used as the default configuration of Viewport.