disableOfflinePush method Null safety
- @Deprecated("Use [setSilentModeForAll] to instead")
Do not push the offline messages within the specified time period (24-hour clock).
Param start The start hour(24-hour clock).
Param end The end hour(24-hour clock).
Throws A description of the issue that caused this exception. See ChatError
Implementation
@Deprecated("Use [setSilentModeForAll] to instead")
Future<void> disableOfflinePush({
required int start,
required int end,
}) async {
Map req = {'start': start, 'end': end};
Map result =
await PushChannel.invokeMethod(ChatMethodKeys.disableOfflinePush, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}