getDNDStatus method

  1. @override
Future<InterruptionFilter> getDNDStatus()
override

Retrieves the current Do Not Disturb status.

Returns the current InterruptionFilter status.

Implementation

@override
Future<InterruptionFilter> getDNDStatus() async {
  final int? status = await methodChannel.invokeMethod<int>('getDNDStatus');
  return InterruptionFilter.fromValue(status ?? 0);
}