Length class

This dimension takes a value with a length unit such as px or em. Note that these can be fixed or relative (but they must not be a percent)

Inheritance
Available extensions

Constructors

Length(double value, [Unit unit = Unit.px])

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit ↔ Unit
getter/setter pairinherited
value ↔ double
getter/setter pairinherited

Methods

calculateRelativeValue(double remValue, double emValue) → double?
inherited
normalize(double emValue) → void

Available on Dimension, provided by the Normalize extension

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