CssLengthUnit enum

Length measurement units.

Constants

em → const CssLengthUnit

Relative unit: em.

const CssLengthUnit(0)
percentage → const CssLengthUnit

Relative unit: percentage.

const CssLengthUnit(1)
pt → const CssLengthUnit

Absolute unit: points, 1pt = 1/72th of 1in.

const CssLengthUnit(2)
px → const CssLengthUnit

Absolute unit: pixels, 1px = 1/96th of 1in.

const CssLengthUnit(3)
values → const List<CssLengthUnit>

A constant List of the values in this enum, in order of their declaration.

const List<CssLengthUnit>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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