WhiteSpace enum

The white-space CSS property sets how white space inside an element is handled.

Read more: MDN white-space

Inheritance
Available extensions

Values

normal → const WhiteSpace

Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Text will wrap when necessary to fill line boxes.

const WhiteSpace('normal')
noWrap → const WhiteSpace

Text does not wrap across lines. It will overflow its containing element rather than breaking onto a new line.

const WhiteSpace('nowrap')
pre → const WhiteSpace

Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements.

const WhiteSpace('pre')
preWrap → const WhiteSpace

Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.

const WhiteSpace('pre-wrap')
preLine → const WhiteSpace

Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.

const WhiteSpace('pre-line')
breakSpaces → const WhiteSpace
const WhiteSpace('break-spaces')
inherit → const WhiteSpace
const WhiteSpace('inherit')
initial → const WhiteSpace
const WhiteSpace('initial')
revert → const WhiteSpace
const WhiteSpace('revert')
revertLayer → const WhiteSpace
const WhiteSpace('revert-layer')
unset → const WhiteSpace
const WhiteSpace('unset')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

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

values → const List<WhiteSpace>
A constant List of the values in this enum, in order of their declaration.