first property

TextBit first

The first bit (recursively).

Implementation

TextBit get first {
  for (final child in _children) {
    final first = child is TextBits ? child.first : child;
    if (first != null) return first;
  }

  return null;
}