onPublish method

  1. @override
Future<bool> onPublish()
inherited

Implementation

@override
Future<bool> onPublish() async {
  final didUpdate = await super.onPublish();
  if (didUpdate) {
    // update counter
    await _trackCounterLock.synchronized(() async {
      _localTrackCount++;
      await _onAudioTrackCountDidChange();
    });
  }
  return didUpdate;
}