getNavigatorPushNamed2 method

dynamic getNavigatorPushNamed2()

Implementation

getNavigatorPushNamed2(){
  if( _latestUri!=null ){
    final queryParams = _latestUri?.queryParametersAll.entries.toList();
    logCat('_initialLink: $latestLink');
    logCat('_latestUri: $_latestUri');
    logCat('_latestUri?.path: ${_latestUri?.path}');
    logCat('_queryParams: ${queryParams.toString()}');

    _deepLinks = DeepLinksModel();
    _deepLinks?.initialLink = _initialLink;
    _deepLinks?.latestUri = _latestUri;
    _deepLinks?.latestUriPath = _latestUri?.path;
    _deepLinks?.queryParams = _latestUri?.queryParametersAll.entries.toList();
  }
  if( _deepLinks?.latestUri!=null ){
    Navigator.of(Get.context!).pushNamed( _deepLinks!.latestUriPath!, arguments: _deepLinks );
  }
}