updateRects method
void
updateRects()
Implementation
void updateRects() {
final context = key.currentContext;
if (context == null) {
TBLLogger.log('$TAG | TBLWebViewManager | updateRects | Context is null');
return;
}
if (!context.mounted) {
TBLLogger.log('$TAG | updateRects | Context is not mounted');
return;
}
final rects = tblRectUtils.calculateRects(context);
if (rects != null) {
webViewRect = rects.webViewRect;
nativeWindowRect = rects.nativeWindowRect;
notifyExternalRects();
} else {
TBLLogger.log('$TAG | updateRects | Failed to calculate rects');
}
}