addKey method

Implementation

GlobalKey<NavigatorState>? addKey(GlobalKey<NavigatorState> newKey) {
  _key = newKey;
  return key;
}