CssLength class Null safety

A length measurement.

Annotations

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isPositive bool
Returns true if value is larger than 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
A string representation of this object. [...]
override

Operators

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

Constants

zero → const CssLength
A zero length.