BaseTextStyle class
TextStyle处理类 用来将内部属性重新赋值进行copyWith 和 merge操作
Constructors
- BaseTextStyle({Color? color, double? fontSize, FontWeight? fontWeight, TextDecoration? decoration, TextBaseline? textBaseline, double? height})
- BaseTextStyle.withStyle(TextStyle? style)
Properties
- color ↔ Color?
-
getter/setter pair
- decoration ↔ TextDecoration?
-
getter/setter pair
- fontSize ↔ double?
-
getter/setter pair
- fontWeight ↔ FontWeight?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textBaseline ↔ TextBaseline?
-
getter/setter pair
Methods
-
copyWith(
{Color? color, double? fontSize, FontWeight? fontWeight, TextDecoration? decoration, double? height, TextBaseline? textBaseline}) → BaseTextStyle -
flatTextStyle(
BaseTextStyle? defaultTextStyle) → void -
generateTextStyle(
) → TextStyle -
merge(
BaseTextStyle? other) → BaseTextStyle -
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