ation duration) async {
  _logger.d(&#39;FS:---&gt; setSubscriptionDuration &#39;);
  await _waitOpen();
  if (_isInited != Initialized.fullyInitialized) {
    throw Exception(&#39;Player is not open&#39;);
  }
  var state = await FlutterSoundPlayerPlatform.instance
      .setSubscriptionDuration(this, duration: duration);
  _playerState = PlayerState.values[state];
  _logger.d(&#39;FS:&lt;---- setSubscriptionDuration &#39;);
}</code></pre>
</section>


  </div> <!-- /.main-content -->
  <div id="dartdoc-si