StyleText class

Constructors

StyleText()

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

Static Methods

black({num? size, Color? color, Color? backgroundColor, Color? decorationColor, FontWeight fontWeight = FontWeight.normal, String? fontFamily, TextDecoration decoration = TextDecoration.none, double? decorationThickness, Brightness? brightness, bool ignoreColor = false}) TextStyle
bold({num? size, Color? color, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, String? fontFamily, TextDecoration decoration = TextDecoration.none, double? decorationThickness}) TextStyle
grey({num? size, Color? color, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, String? fontFamily}) TextStyle
normal({num? size, Color? color, Color? backgroundColor, Color? decorationColor, FontWeight fontWeight = FontWeight.normal, String? fontFamily, TextDecoration? decoration = TextDecoration.none, double? decorationThickness, Brightness? brightness, bool ignoreColor = false}) TextStyle
one({Color? color, num? size, FontWeight weight = FontWeight.normal, Brightness? brightness, bool ignoreColor = false}) TextStyle
忽略
oneB({Color? color, num? size, FontWeight weight = FontWeight.bold, Brightness? brightness, bool ignoreColor = false}) TextStyle
oneNoColor({Color? color, num? size, FontWeight weight = FontWeight.normal, Brightness? brightness}) TextStyle
采用默认 DefaultTextStyle 的颜色
red({num? size, Color? color, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, String? fontFamily, TextDecoration? decoration}) TextStyle
three({Color? color, num? size, FontWeight weight = FontWeight.normal, TextDecoration? decoration, Brightness? brightness, bool ignoreColor = false}) TextStyle
threeNoColor({Color? color, num? size, FontWeight weight = FontWeight.normal, Brightness? brightness}) TextStyle
采用默认 DefaultTextStyle 的颜色
two({Color? color, num? size, FontWeight weight = FontWeight.normal, TextDecoration? decoration, Brightness? brightness, bool ignoreColor = false}) TextStyle
twoNoColor({Color? color, num? size, FontWeight weight = FontWeight.normal, Brightness? brightness}) TextStyle
采用默认 DefaultTextStyle 的颜色
white({num? size, Color? color, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, String? fontFamily, TextDecoration decoration = TextDecoration.none}) TextStyle