containsOffset method

bool containsOffset(
  1. int offset
)

Returns true if this node contains character at specified offset in the document.

Implementation

bool containsOffset(int offset) {
  final o = documentOffset;
  return o <= offset && offset < o + length;
}