IconStyle class

Inheritance

Constructors

IconStyle(IconData icon)

Properties

background Paint
The paint drawn as a background for the text. [...]
final, inherited
backgroundColor Color
The color to use as the background for the text. [...]
final, inherited
color Color
The color to use when painting the text. [...]
final, inherited
debugLabel String
A human-readable description of this text style. [...]
final, inherited
decoration TextDecoration
The decorations to paint near the text (e.g., an underline). [...]
final, inherited
decorationColor Color
The color in which to paint the text decorations.
final, inherited
decorationStyle TextDecorationStyle
The style in which to paint the text decorations (e.g., dashed).
final, inherited
decorationThickness double
The thickness of the decoration stroke as a multiplier of the thickness defined by the font. [...]
final, inherited
fontFamily String
The name of the font to use when painting the text (e.g., Roboto). If the font is defined in a package, this will be prefixed with 'packages/package_name/' (e.g. 'packages/cool_fonts/Roboto'). The prefixing is done by the constructor when the package argument is provided. [...]
final, inherited
fontFamilyFallback List<String>
The ordered list of font families to fall back on when a glyph cannot be found in a higher priority font family. [...]
read-only, inherited
fontFeatures List<FontFeature>
A list of FontFeatures that affect how the font selects glyphs. [...]
final, inherited
fontSize double
The size of glyphs (in logical pixels) to use when painting the text. [...]
final, inherited
fontStyle FontStyle
The typeface variant to use when drawing the letters (e.g., italics).
final, inherited
fontWeight FontWeight
The typeface thickness to use when painting the text (e.g., bold).
final, inherited
foreground Paint
The paint drawn as a foreground for the text. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
height double
The height of this text span, as a multiple of the font size. [...]
final, inherited
icon IconData
final
inherit bool
Whether null values are replaced with their value in an ancestor text style (e.g., in a TextSpan tree). [...]
final, inherited
letterSpacing double
The amount of space (in logical pixels) to add between each letter. A negative value can be used to bring the letters closer.
final, inherited
locale Locale
The locale used to select region-specific glyphs. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shadows List<Shadow>
A list of Shadows that will be painted underneath the text. [...]
final, inherited
textBaseline TextBaseline
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box.
final, inherited
wordSpacing double
The amount of space (in logical pixels) to add at each sequence of white-space (i.e. between each word). A negative value can be used to bring the words closer.
final, inherited

Methods

apply({Color color, Color backgroundColor, TextDecoration decoration, Color decorationColor, TextDecorationStyle decorationStyle, double decorationThicknessFactor: 1.0, double decorationThicknessDelta: 0.0, String fontFamily, List<String> fontFamilyFallback, double fontSizeFactor: 1.0, double fontSizeDelta: 0.0, int fontWeightDelta: 0, FontStyle fontStyle, double letterSpacingFactor: 1.0, double letterSpacingDelta: 0.0, double wordSpacingFactor: 1.0, double wordSpacingDelta: 0.0, double heightFactor: 1.0, double heightDelta: 0.0, TextBaseline textBaseline, Locale locale, List<Shadow> shadows, List<FontFeature> fontFeatures}) TextStyle
Creates a copy of this text style replacing or altering the specified properties. [...]
inherited
compareTo(TextStyle other) RenderComparison
Describe the difference between this style and another, in terms of how much damage it will make to the rendering. [...]
inherited
copyWith({bool inherit, Color color, Color backgroundColor, String fontFamily, List<String> fontFamilyFallback, double fontSize, FontWeight fontWeight, FontStyle fontStyle, double letterSpacing, double wordSpacing, TextBaseline textBaseline, double height, Locale locale, Paint foreground, Paint background, List<Shadow> shadows, List<FontFeature> fontFeatures, TextDecoration decoration, Color decorationColor, TextDecorationStyle decorationStyle, double decorationThickness, String debugLabel}) TextStyle
Creates a copy of this text style but with the given fields replaced with the new values. [...]
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties, {String prefix: ''}) → void
Adds all properties prefixing property names with the optional prefix.
inherited
getParagraphStyle({TextAlign textAlign, TextDirection textDirection, double textScaleFactor: 1.0, String ellipsis, int maxLines, TextHeightBehavior textHeightBehavior, Locale locale, String fontFamily, double fontSize, FontWeight fontWeight, FontStyle fontStyle, double height, StrutStyle strutStyle}) ParagraphStyle
The style information for paragraphs, encoded for use by dart:ui. [...]
inherited
getTextStyle({double textScaleFactor: 1.0}) TextStyle
The style information for text runs, encoded for use by dart:ui.
inherited
merge(TextStyle other) TextStyle
Returns a new text style that is a combination of this style and the given other style. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.info}) String
Returns a string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited