checkAndRequestRecorder method

Future<void> checkAndRequestRecorder()

Implementation

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