W3cubDocs

/Dart 2

Dimension class

Class representing a length measurement in CSS.

Constructors

Dimension.cm(num _value)
Set this CSS Dimension to a centimeter value.
Dimension.css(String cssValue)
Construct a Dimension object from the valid, simple CSS string cssValue that represents a distance measurement. [...]
Dimension.em(num _value)
Set this CSS Dimension to the specified number of ems. [...]
Dimension.ex(num _value)
Set this CSS Dimension to the specified number of x-heights. [...]
Dimension.inch(num _value)
Set this CSS Dimension to an inch value.
Dimension.mm(num _value)
Set this CSS Dimension to a millimeter value.
Dimension.pc(num _value)
Set this CSS Dimension to a pica value.
Dimension.percent(num _value)
Set this CSS Dimension to a percentage value.
Dimension.pt(num _value)
Set this CSS Dimension to a point value.
Dimension.px(num _value)
Set this CSS Dimension to a pixel value.

Properties

valuenum
read-only
Return a unitless, numerical value of this CSS value.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

toString() → String
Print out the CSS String representation of this value.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]

Operators

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/Dimension-class.html