TextStyleExtension extension
Extension methods for TextStyle to provide fallback values.
- on
Methods
-
fallback(
{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, TextOverflow? overflow}) → TextStyle -
Available on TextStyle, provided by the TextStyleExtension extension
Returns a new TextStyle with null properties replaced by fallback values.