kakaoSchemeStream top-level property

Stream<String?> kakaoSchemeStream

KO: 실행 중인 앱을 커스텀 URL 스킴 호출로 실행할 때 URL 전달
EN: Pass the URL when launching a running app with a custom URL scheme

Implementation

Stream<String?> get kakaoSchemeStream {
  if (kIsWeb) {
    return Stream.value(null);
  }

  return const EventChannel(CommonConstants.eventChannel)
      .receiveBroadcastStream()
      .map<String?>((link) => link as String?);
}