text property

String? text
final

How to decode:

  String value = 'value';
  List<RichTrexSpan> result = RichTrexSpan.decode(value);
  print(result); // [RichTrexSpan(text: "value")]

How to encode:

  List<RichTrexSpan> value = [RichTrexSpan(text: "value")];
  String result = RichTrexSpan.encode(value);
  print(result); // 'value'

Implementation

final String? text;