Rope constructor

Rope([
  1. String initialText = ''
])

Implementation

Rope([String initialText = '']) {
  if (initialText.isEmpty) {
    _root = null;
    _length = 0;
  } else {
    _root = _buildBalanced(initialText, 0, initialText.length);
    _length = initialText.length;
  }
}