delegateFrom method
Delegates all positions and context from a given controller to itself and removes all positions from the given controller, ensuring that each appbar position exists only once in the controller.
Implementation
void delegateFrom(AppBarController other) {
_positions.clear();
_positions.addAll(other._positions..clear());
}