Width class

The Width class takes in a value and units, and defaults to px if no units are provided. A helper constructor, Width.auto constructor is provided for convenience.

Inheritance
Available Extensions

Constructors

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

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