italic property
How to decode:
String value = '<style="decoration:italic;">value</style>';
List<RichTrexSpan> result = RichTrexSpan.decode(value);
print(result); // [RichTrexSpan(text: "value", italic: true)]
How to encode:
List<RichTrexSpan> value = [RichTrexSpan(text: "value", italic: true)];
String result = RichTrexSpan.encode(value);
print(result); // '<style="decoration:italic;">value</style>'
Implementation
final bool italic;