Unit class abstract

Constructors

Unit.em(double value)
Constructs a Unit in the form '100em'
const
factory
Unit.expression(String expression)
Constructs a Unit from a custom css expression.
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.variable(String value)
Represents a css variable
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
The style attribute unit 'auto'
fitContent → const Unit
The fit-content keyword means that the box will use the available space, but never more than max-content.
inherit → const Unit
initial → const Unit
maxContent → const Unit
The max-content sizing keyword represents the maximum intrinsic size of the content. For text content this means that the content will not wrap at all even if it causes overflows.
minContent → const Unit
The min-content sizing keyword represents the minimum intrinsic size of the content. For text content this means that the content will take all soft-wrapping opportunities, becoming as small as the longest word.
revert → const Unit
revertLayer → const Unit
unset → const Unit
zero → const Unit