pushAttributionsBack method

void pushAttributionsBack(
  1. int offset
)

Changes all spans in this AttributedSpans by pushing them back by offset amount.

Implementation

void pushAttributionsBack(int offset) {
  final pushedAttributions = _markers.map((marker) => marker.copyWith(offset: marker.offset + offset)).toList();
  _markers
    ..clear()
    ..addAll(pushedAttributions);
}