addKey method

Function to add a new navigator key to the application.

Parameters:

  • newKey: The new navigator key to add.

Returns: The added navigator key.

Implementation

GlobalKey<NavigatorState>? addKey(GlobalKey<NavigatorState> newKey) {
  return rootController.addKey(newKey);
}