TextStyleExtensions extension

Extension on TextStyle to apply quick style changes.

on

Methods

bold({FontWeight? weight}) TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Returns a copy with bold weight (default weight is 600).
italic() TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Returns a copy with italic style.
semiBold() TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Returns a copy with semi-bold weight (500).
size(double size) TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Returns a copy with updated font size.
withColor(Color color) TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Returns a copy with a specified color.