setCall static method
- WebStoredCall call
Stores the provided call
in the browser's storage.
Implementation
static void setCall(WebStoredCall call) {
web.window.localStorage.setItem(
'call_${call.chatId}',
json.encode(call.toJson()),
);
web.window.localStorage.setItem(
'at_call_${call.chatId}',
DateTime.now().add(const Duration(seconds: 5)).toString(),
);
}