TextSpan constructor

TextSpan(
  1. String text,
  2. List<Map<String, dynamic>> propertyArray,
  3. List<String> activeTags, [
  4. int index = 0,
  5. Map<String, dynamic>? extraProps,
])

Implementation

TextSpan(
  String text,
  this.propertyArray,
  this.activeTags, [
  this.index = 0,
  Map<String, dynamic>? extraProps,
]) : _text = text {
  if (extraProps != null) {
    xOffset = extraProps['xOffset'] as double?;
    newLine = extraProps['newLine'];
  }
}