TextStyleExtension extension Null safety

on

Methods

add(Object? obj, {bool apply = true}) TextStyle
Instead of using operator + you can use the add method. If apply is false, the provided obj will not be added.

Operators

operator +(Object? obj) TextStyle
You can create a TextStyle by adding the TextStyle to one these types: Color, FontFamily, FontSize, FontWeight, FontStyle, TextBaseline, Locale, Shadows, FontFeatures, Decoration, or DecorationStyle, or DecorationStyle.