renderWidth property
int?
renderWidth
Implementation
int? get renderWidth {
if (point != null) {
return null;
} else if (targetElement != null) {
if (popupPosition == PopupPosition.below ||
popupPosition == PopupPosition.upward) {
var element = targetElement!.element!;
var r = element.getBoundingClientRect();
return r.width.toInt();
}
}
return null;
}