introduceAsSibling method

void introduceAsSibling(
  1. String navigation,
  2. CupertinoStackViewState cupertinoStackViewState
)

Implementation

void introduceAsSibling(String navigation, CupertinoStackViewState cupertinoStackViewState) {
  if (_isSiblingMapped(navigation)) {
    _siblingMap.firstWhere((_ListPair navigationStackStatePair) => navigationStackStatePair._navigation == navigation)._cupertinoStackViewState = cupertinoStackViewState;
  } else {
    _siblingMap.insert(0, _ListPair(navigation, cupertinoStackViewState));
  }
}