CssLength class

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.
no setterinherited
isPositive bool
Returns true if value is larger than zero.
no setter
number double
The measurement number.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit CssLengthUnit
The measurement unit.
final

Methods

getValue(InheritedProperties resolved, {double? baseValue, double? scaleFactor}) double?
Calculates value in logical pixel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.