getNotificationSound method

  1. @override
Future<bool?> getNotificationSound()
override

This method is used to get the notification sound.

Implementation

@override
Future<bool?> getNotificationSound() async {
  bool? isEnabled = false;
  try {
    isEnabled =
        await mirrorFlyMethodChannel.invokeMethod('getNotificationSound');
    return isEnabled;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}