setRemoteConfigChangeListener method

  1. @override
Stream<MoveConfig> setRemoteConfigChangeListener()
override

Set a listener when the config changed in response to the useBackendConfig option.

Implementation

@override
Stream<MoveConfig> setRemoteConfigChangeListener() async* {
  yield* configChangeChannel
      .receiveBroadcastStream()
      .asyncMap<MoveConfig>((result) {
    return MoveConfig.fromNative(result);
  });
}