registerPlayer function

void registerPlayer(
  1. BuildContext context,
  2. SoundPlayerUIState player
)

Implementation

void registerPlayer(BuildContext context, SoundPlayerUIState player) {
  var controller = RecorderPlaybackController.of(context)?._state;
  if (controller != null) {
    controller._playerState = player;
  }
}