AudioPlayer constructor

AudioPlayer({
  1. FlutterAudioRecorderPlayer? player,
})

Creates a new audio player

If player is provided, it will be used instead of creating a new instance.

Implementation

AudioPlayer({FlutterAudioRecorderPlayer? player})
  : _player = player ?? FlutterAudioRecorderPlayer(),
    _createdPlayer = player == null;