isPlaying method

bool isPlaying({
  1. required String msgID,
})

function for checking if audio is playing msgID (required) message ID returns a bool value

Implementation

bool isPlaying({
  required String msgID,
}) {
  bool res = false;
  if (_audioPlayInfo != null) {
    if (_audioPlayInfo!.msgID == msgID) {
      if (player?.state == PlayerState.playing) {
        res = true;
      }
    }
  }
  return res;
}