areNotificationsEnabled method
Check if notifications are enabled (Android O+)
Implementation
@override
Future<bool> areNotificationsEnabled() async {
try {
final result = await _methodChannel.invokeMethod<bool>('areNotificationsEnabled');
return result ?? true;
} catch (e) {
return true; // Default to true for older Android versions
}
}