Style class sealed Styles and Colors

A marker type that represents a style that can be applied to the terminal.

All of the possible styles are represented as subtypes of Style and also are available as static constants or factory constructors on the class itself.

Implementers
Annotations
  • @immutable

Constructors

Style.background(Color color)
Creates a style that sets the background color to color.
const
factory
Style.foreground(Color color)
Creates a style that sets the foreground color to color.
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

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

blinkRapid → const Style
Rapid blink, typically 150+ blinks per minute.
blinkSlow → const Style
Slow blink, typically less than 150 blinks per minute.
bold → const Style
Increases the text intensity.
dim → const Style
Decreases the text intensity.
encircled → const Style
Encircled text.
fraktur → const Style
Fraktur text, which is a German style of blackletter.
framed → const Style
Framed text.
hidden → const Style
Hides the text.
ideogramDoubleOverline → const Style
Ideogram double overline.
ideogramDoubleUnderline → const Style
Ideogram double underline.
ideogramOverline → const Style
Ideogram overline.
ideogramStressMarking → const Style
Ideogram stress marking.
ideogramUnderline → const Style
Ideogram underline.
invert → const Style
Inverts the foreground and background colors.
italic → const Style
Emphasizes the text.
Disables blinkSlow or blinkRapid attribute.
noBoldOrDim → const Style
Disables bold or dim attribute.
noBoldOrDoubleUnderline → const Style
Disables the bold or ideogramDoubleUnderline attribute.
noFramedOrEncircled → const Style
Disables the framed or encircled attribute.
noHidden → const Style
Disables the hidden attribute.
noIdeogramAttributes → const Style
No ideogram attributes.
noItalicOrFraktur → const Style
Disables the italic or fraktur attribute.
noOverlined → const Style
Disables the overlined attribute.
noReverse → const Style
Disables the invert attribute.
noStrikeThrough → const Style
Disables the strikeThrough attribute.
noUnderline → const Style
Disables underline attribute.
overlined → const Style
Overlined text.
reset → const Style
Resets all styles to their default values.
strikeThrough → const Style
Strikes through the text.
underline → const Style
Underlines the text.