initRect method

void initRect(
  1. Rect layoutRect,
  2. Rect destinationRect
)

Implementation

void initRect(Rect layoutRect, Rect destinationRect) {
  if (_layoutRect != layoutRect) {
    _layoutRect = layoutRect;
    _screenDestinationRect = null;
  }

  if (_rawDestinationRect != destinationRect) {
    _rawDestinationRect = destinationRect;
    _screenDestinationRect = null;
  }
}