checkAndRequestRecorder method

Future<void> checkAndRequestRecorder()

Implementation

Future<void> checkAndRequestRecorder() async {
  final status = await Permission.microphone.request();
  if (!status.isGranted) {
    SmartDialog.showNotify(
      msg: 'Recording permissions are required to continue',
      notifyType: NotifyType.alert,
      alignment: Alignment.center,
    );
    hasPermisson.value = false;
  } else {
    hasPermisson.value = true;
  }
}