goTo method

bool goTo(
  1. String key
)

Shows the pane with key. Returns false if there is no such pane or it is already showing.

Implementation

bool goTo(String key) {
  if (!_panes.containsKey(key) || key == currentKey) return false;
  _history
    ..remove(key)
    ..add(key);
  notifyListeners();
  return true;
}