allContentLinesForSelection method

List<String> allContentLinesForSelection()

Implementation

List<String> allContentLinesForSelection() {
  if (children.isEmpty) return const <String>[];
  final maxWidth = size.width.round();
  final buffer = StringBuffer();
  for (var i = 0; i < children.length; i++) {
    final resolved = _resolveChildPaint(index: i, maxWidth: maxWidth);
    buffer.write(resolved.text);
    if (i < children.length - 1 && separator.isNotEmpty) {
      buffer.write(separator);
    }
  }
  return buffer.toString().split('\n');
}