Unit class abstract

Constructors

Unit.em(double value)
Constructs a Unit in the form '100em'
const
factory
Unit.percent(double value)
Constructs a Unit in the form '100%'
const
factory
Unit.pixels(double value)
Constructs a Unit in the form '100px'
const
factory
Unit.points(double value)
Constructs a Unit in the form '100pt'
const
factory
Unit.rem(double value)
Constructs a Unit in the form '100rem'
const
factory
Unit.vh(double value)
Constructs a Unit in the form '100vh'
const
factory
Unit.vw(double value)
Constructs a Unit in the form '100vw'
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

auto → const Unit
auto represents the style attribute unit 'auto'
zero → const Unit