FractionalViewportInset class

A viewport inset that is defined by a fractional value.

Inheritance

Constructors

FractionalViewportInset.new(double fraction)
Creates a viewport inset from a fractional value.
const

Properties

fraction double
The fractional value of the inset.
final
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