getCallRect static method

Rect? getCallRect(
  1. ChatId chatId
)

Returns the Rect stored by the provided chatId, if any.

Implementation

static Rect? getCallRect(ChatId chatId) {
  var data = web.window.localStorage.getItem('prefs_call_$chatId');
  if (data != null) {
    return _RectExtension.fromJson(json.decode(data));
  }

  return null;
}