sendToBack method

void sendToBack()

Implementation

void sendToBack() {
  final selection = _selected.toList();
  for (final key in selection) {
    final index = nodes.indexWhere((e) => e.key == key);
    if (index == -1) continue;
    final current = nodes[index];
    nodes.removeAt(index);
    nodes.insert(0, current);
  }
  notifyListeners();
}