widgetInViewport method

bool widgetInViewport(
  1. Offset position
)

Implementation

bool widgetInViewport(Offset position) {
  return !position.dx.isNaN && !position.dy.isNaN;
}