size property

Size get size

Returns actual size of the call view.

Implementation

Size get size {
  if ((!fullscreen.value && minimized.value) || minimizing.value) {
    return Size(width.value, height.value - (isMobile ? 0 : titleHeight));
  } else if (PlatformUtils.isMobile && !PlatformUtils.isWeb) {
    // TODO: Account [BuildContext.mediaQueryPadding].
    return router.context!.mediaQuerySize;
  } else {
    // If not [WebUtils.isPopup], then subtract the title bar from the height.
    if (fullscreen.isTrue && !WebUtils.isPopup) {
      final Size size = router.context!.mediaQuerySize;
      return Size(size.width, size.height - titleHeight);
    } else {
      return router.context!.mediaQuerySize;
    }
  }
}