clone method

TextSpan clone()

Create a deep copy of this span.

Implementation

TextSpan clone() {
  final result = TextSpan(
    _text,
    List<Map<String, dynamic>>.from(propertyArray),
    List<String>.from(activeTags),
    index,
  );
  result.xOffset = xOffset;
  result.newLine = newLine;
  return result;
}