Style class final

Control over the visual appearance of displayed elements.

Available Extensions
Annotations

Constructors

Style({Color? foreground, Color? background})
Creates a new default style.
const

Properties

background → Color?
Which color to use the background.
final
foreground → Color?
Which color to use the foreground.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? foreground, Color? background}) → Style
Returns a copy of this style with the given properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(Style other) → Style
Returns a new style with the properties of other overriding this style.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

none → const Style
No style is applied.
reset → const Style
Reset the style to the default.