dispose method

void dispose()

use this method to destroy the current navigatorKey attached to the app

useful for widget testing

Implementation

void dispose() {
  _appKey = null;
  _navigatorKey?.currentState?.dispose();
  _navigatorKey = null;
}