length property

  1. @override
int get length
override

Length of this node in characters.

Implementation

@override
int get length {
  if (_length != null) {
    return _length!;
  }
  if (_value is String) {
    _length = (_value as String).length;
  } else {
    // return 1 for embedded object
    _length = 1;
  }
  return _length!;
}