reverseSubmobjects method

void reverseSubmobjects({
  1. bool recursive = false,
})

Implementation

void reverseSubmobjects({bool recursive = false}) {
  submobjects = [for (var submob in submobjects.reversed) submob];

  if (recursive) {
    for (var submob in submobjects) {
      submob.reverseSubmobjects(recursive: true);
    }
  }
}