CssLength class

A length measurement.

Annotations
  • @immutable

Constructors

CssLength(double number, [CssLengthUnit unit = CssLengthUnit.px])
Creates a measurement. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isNotEmpty bool
Returns true if value is non-zero.
read-only
number double
The measurement number.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
unit CssLengthUnit
The measurement unit.
final

Methods

getValue(TextStyleHtml tsh, {double baseValue, double scaleFactor}) double
Calculates value in logical pixel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited