TextStyleEx extension
- on
Methods
-
combine(
TextStyle? other) → TextStyle -
Available on TextStyle, provided by the TextStyleEx extension
返回此 TextStyle 的副本,其中other中的非空字段替换了此 TextStyle 中相应的空字段。 换句话说,other用于填充此 TextStyle 中的未指定(空)字段。 !!!:_package字段是私有的,无法获取package, 所以不能替换 package 字段。 -
combineWith(
{bool? inherit, Color? color, Color? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, TextLeadingDistribution? leadingDistribution, Locale? locale, Paint? foreground, Paint? background, List< Shadow> ? shadows, List<FontFeature> ? fontFeatures, List<FontVariation> ? fontVariations, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? debugLabel, String? fontFamily, List<String> ? fontFamilyFallback, String? package, TextOverflow? overflow}) → TextStyle -
Available on TextStyle, provided by the TextStyleEx extension
返回此 TextStyle 的副本,其中other中的非空字段替换了此 TextStyle 中相应的空字段。 换句话说,other用于填充此 TextStyle 中的未指定(空)字段。 !!!:_package字段是私有的,无法获取package, 所以会直接替换 package 字段。