API Reference 0.3.24dart_web_toolkit_utilUnit<String>

Unit<String> class

CSS length units.

class Unit<String> extends Enum<String> {

 const Unit(String type) : super (type);

 static const Unit PX = const Unit(Style._UNIT_PX);
 static const Unit PCT = const Unit(Style._UNIT_PCT);
 static const Unit EM = const Unit(Style._UNIT_EM);
 static const Unit EX = const Unit(Style._UNIT_EX);
 static const Unit PT = const Unit(Style._UNIT_PT);
 static const Unit PC = const Unit(Style._UNIT_PC);
 static const Unit IN = const Unit(Style._UNIT_IN);
 static const Unit CM = const Unit(Style._UNIT_CM);
 static const Unit MM = const Unit(Style._UNIT_MM);
}

Extends

Enum<String> > Unit<String>

Static Properties

const Unit CM #

static const Unit CM = const Unit(Style._UNIT_CM)

const Unit EM #

static const Unit EM = const Unit(Style._UNIT_EM)

const Unit EX #

static const Unit EX = const Unit(Style._UNIT_EX)

const Unit IN #

static const Unit IN = const Unit(Style._UNIT_IN)

const Unit MM #

static const Unit MM = const Unit(Style._UNIT_MM)

const Unit PC #

static const Unit PC = const Unit(Style._UNIT_PC)

const Unit PCT #

static const Unit PCT = const Unit(Style._UNIT_PCT)

const Unit PT #

static const Unit PT = const Unit(Style._UNIT_PT)

const Unit PX #

static const Unit PX = const Unit(Style._UNIT_PX)

Constructors

const Unit(String type) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const Unit(String type) : super (type);

Properties

final T value #

inherited from Enum
T get value => _value;