setNoDisturb method

Future<void> setNoDisturb ({@required dynamic target, @required bool isNoDisturb })

Implementation

Future<void> setNoDisturb({
  @required dynamic target, // (JMSingle | JMGroup)
  @required bool isNoDisturb,
}) async {
  var param = target.toJson();
  param['isNoDisturb'] = isNoDisturb;
  await _channel.invokeMethod('setNoDisturb',
    param..removeWhere((key,value) => value == null));
  return;
}