setSilentModeForAll method Null safety
- {required ChatSilentModeParam param}
Set the DND normal settings for the current login user.
Param param Push DND parameters offline.
Throws A description of the exception. See {@link ChatError}.
Implementation
Future<void> setSilentModeForAll({
required ChatSilentModeParam param,
}) async {
Map req = {};
req["param"] = param.toJson();
Map result = await _channel.invokeMethod(
ChatMethodKeys.setSilentModeForAll,
req,
);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}