# navigate method Null safety

Future navigate(

1. {required Location destination,
2. NaviOption? option,
3. List<Location>? viaList}

)

카카오내비 앱으로 길안내를 실행 `location`로 목적지를 입력받고 `option`를 통해 길안내 옵션을 입력받음 경유지 목록은 최대 3개까지 등록 가능하고 `viaList`로 입력받음

## Implementation

    Future navigate(
        {required Location destination,
        NaviOption? option,
        List<Location>? viaList}) async {
      final extras = await _getExtras();
      final arguments = {
        Constants.appKey: KakaoSdk.appKey,
        Constants.extras: jsonEncode(extras),
        Constants.naviParams: jsonEncode(
          KakaoNaviParams(
            destination: destination,
            option: option,
            viaList: viaList,
          ),
        )
      };
      await _channel.invokeMethod<bool>(CommonConstants.navigate, arguments);
    }