collectAllStylesWithOffset method

List<OffsetValue<Style>> collectAllStylesWithOffset(
  1. int index,
  2. int len
)

Returns all styles for any character within the specified text range.

Implementation

List<OffsetValue<Style>> collectAllStylesWithOffset(int index, int len) {
  final res = queryChild(index);
  return (res.node as Line).collectAllStylesWithOffsets(res.offset, len);
}