undo method

T? undo()

Removes and returns the last item added to the manager. Returns null if empty.

Implementation

T? undo() {
  if (_children.isNotEmpty) {
    return _children.removeLast();
  } else {
    return null;
  }
}