setView method
void
setView()
Implementation
void setView() {
try {
if (viewKey.currentContext == null) return;
if (viewRenderBox == null) viewRenderBox = viewKey.currentContext!.findRenderObject() as RenderBox?;
if (viewRenderBox != null) {
if (viewRenderBox!.hasSize) {
if (viewWidth == -1) viewWidth = viewRenderBox!.size.width;
if (viewHeight == -1) viewHeight = viewRenderBox!.size.height;
}
if (viewOrigin == null) viewOrigin = viewRenderBox!.localToGlobal(Offset.zero);
}
} catch (_) {}
}