getDNDStatus method
Retrieves the current Do Not Disturb status.
Returns InterruptionFilter.unknown
if the platform is iOS, otherwise returns the DND status on android.
Implementation
Future<InterruptionFilter> getDNDStatus() async {
if (Platform.isIOS) {
return InterruptionFilter.unknown;
}
return DoNotDisturbPlatform.instance.getDNDStatus();
}