Dimension class abstract

Base class of Dimension. Convert to actual px value by calling the toPX() function and provide a constraint value and the screen size.

Implementers

Constructors

Dimension()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isAbsolute bool
does not depend on parent dimension (no % unit)
no setter
isLocal bool
does not depend on viewport size (no VH,VW,VMIN,VMAX unit)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Dimension other) Dimension?
lerpFrom(Dimension? a, double t) Dimension?
lerpTo(Dimension? b, double t) Dimension?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double t) Dimension
toJson() → dynamic
toPX({double? constraint, Size? screenSize}) double
toString() String
A string representation of this object.
inherited

Operators

operator +(Dimension other) Dimension
operator -(Dimension other) Dimension
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() Dimension

Static Methods

clamp(Dimension min, Dimension value, Dimension max) Dimension
lerp(Dimension? a, Dimension? b, double t) Dimension?
max(Dimension value1, Dimension value2) Dimension
min(Dimension value1, Dimension value2) Dimension