length property

  1. @override
int length
override

Length of this node in characters.

Implementation

@override
int get length {
  if (_value is String) {
    return (_value as String).length;
  }
  return 1; // embed objects have length of 1.
}