TextTransform enum

The text-transform CSS property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized. It also can help improve legibility for ruby.

Read more: MDN text-transform

Inheritance
Available extensions

Values

none → const TextTransform

Prevents the case of all characters from being changed.

const TextTransform('none')
capitalize → const TextTransform

Converts the first letter of each word to uppercase. Other characters remain unchanged (they retain their original case as written in the element's text). A letter is defined as a character that is part of Unicode's Letter or Number general categories; thus, any punctuation marks or symbols at the beginning of a word are ignored.

const TextTransform('capitalize')
upperCase → const TextTransform

Converts all characters to uppercase.

const TextTransform('uppercase')
lowerCase → const TextTransform

Converts all characters to lowercase.

const TextTransform('lowercase')
fullWidth → const TextTransform

Forces the writing of a character — mainly ideograms and Latin scripts — inside a square, allowing them to be aligned in the usual East Asian scripts (like Chinese or Japanese).

const TextTransform('full-width')
fullSizeKana → const TextTransform

Generally used for <ruby> annotation text, the keyword converts all small Kana characters to the equivalent full-size Kana, to compensate for legibility issues at the small font sizes typically used in ruby.

const TextTransform('full-size-kana')
inherit → const TextTransform
const TextTransform('inherit')
initial → const TextTransform
const TextTransform('initial')
revert → const TextTransform
const TextTransform('revert')
revertLayer → const TextTransform
const TextTransform('revert-layer')
unset → const TextTransform
const TextTransform('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<TextTransform>
A constant List of the values in this enum, in order of their declaration.