GoogleFontTextStyle constructor
GoogleFontTextStyle(
- TextStyle textStyle, {
- required GoogleFontBuilder builder,
- bool overrideFamilyWithBuilder = false,
Implementation
GoogleFontTextStyle(
TextStyle textStyle, {
required this.builder,
this.overrideFamilyWithBuilder = false,
}) : super(
inherit: textStyle.inherit,
color: textStyle.color,
backgroundColor: textStyle.backgroundColor,
fontSize: textStyle.fontSize,
fontWeight: textStyle.fontWeight,
fontStyle: textStyle.fontStyle,
letterSpacing: textStyle.letterSpacing,
wordSpacing: textStyle.wordSpacing,
textBaseline: textStyle.textBaseline,
height: textStyle.height,
leadingDistribution: textStyle.leadingDistribution,
locale: textStyle.locale,
foreground: textStyle.foreground,
background: textStyle.background,
shadows: textStyle.shadows,
fontFeatures: textStyle.fontFeatures,
fontVariations: textStyle.fontVariations,
decoration: textStyle.decoration,
decorationColor: textStyle.decorationColor,
decorationStyle: textStyle.decorationStyle,
decorationThickness: textStyle.decorationThickness,
debugLabel: textStyle.debugLabel,
fontFamily: overrideFamilyWithBuilder
? builder(
fontWeight: textStyle.fontWeight,
fontStyle: textStyle.fontStyle,
).fontFamily
: textStyle.fontFamily ??
((textStyle.fontWeight != null ||
textStyle.fontStyle != null)
? builder(
fontWeight: textStyle.fontWeight,
fontStyle: textStyle.fontStyle,
).fontFamily
: null),
fontFamilyFallback: textStyle.fontFamilyFallback,
overflow: textStyle.overflow,
);