styles property Null safety

Map<String, TextStyle> styles
@Deprecated('Use tags instead of styles.'), final

Style map for tags in text.

Example:

StyledText(
  text: '<red>Red</red> text.',
  styles: [
    'red': TextStyle(color: Colors.red),
  ],
)

Implementation

@Deprecated('Use tags instead of styles.')
final Map<String, TextStyle> styles;