checkUpdateDimension method

void checkUpdateDimension(
  1. int windowWidth,
  2. int windowHeight,
  3. bool shouldUseScreenDisplay,
  4. bool systemUiVisibilityChanged,
)

Implementation

void checkUpdateDimension(
  int windowWidth,
  int windowHeight,
  bool shouldUseScreenDisplay,
  bool systemUiVisibilityChanged,
) {
  var uiContext = currentContext;
  if (_context == null && uiContext != null) {
    return;
  }
  if (uiContext != null) {
    var dimensionMap = getDimensions(
      windowWidth,
      windowHeight,
      shouldUseScreenDisplay,
      uiContext,
    );
    _context?.dimensionChecker.checkUpdateDimension(
      uiContext,
      dimensionMap,
      windowWidth,
      windowHeight,
      shouldUseScreenDisplay,
      systemUiVisibilityChanged,
    );
  }
}