styles property

Map<String, TextStyle> styles
final

Style map for tags in text.

Example:

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

Implementation

final Map<String, TextStyle> styles