setLogListener method

  1. @override
Stream<String> setLogListener()
override

Set callback to be invoked every time a new SDK log event occurs. Returns log string. Invoked every time log event occurs.

Implementation

@override
Stream<String> setLogListener() async* {
  yield* logChannel.receiveBroadcastStream().asyncMap<String>((messageInfo) {
    return "${messageInfo[0]} [${messageInfo[1]}]";
  });
}