build static method

String build()

Implementation

static String build() {
  final body = [
    "'{\"gx\":'",
    'c.dx.toString()',
    "',\"gy\":'",
    'c.dy.toString()',
    "',\"bx\":'",
    '$_ro.paintBounds.left.toString()',
    "',\"by\":'",
    '$_ro.paintBounds.top.toString()',
    "',\"bw\":'",
    '$_ro.paintBounds.width.toString()',
    "',\"bh\":'",
    '$_ro.paintBounds.height.toString()',
    "',\"dpr\":'",
    '$_view.devicePixelRatio.toString()',
    "',\"vw\":'",
    '($_view.physicalSize.width / $_view.devicePixelRatio).toString()',
    "',\"vh\":'",
    '($_view.physicalSize.height / $_view.devicePixelRatio).toString()',
    "',\"op\":'",
    '$_ancOpacity.toString()',
    "',\"vis\":'",
    '$_ancVisible.toString()',
    "',\"hit\":'",
    '$_hittable.toString()',
    "',\"vid\":'",
    '$_view.viewId.toString()',
    "',\"kb\":'",
    '($_view.viewInsets.bottom / $_view.devicePixelRatio).toString()',
    "'}'",
  ].join(' + ');
  return '((Offset c) => $body)($_ro.localToGlobal($_ro.paintBounds.center))';
}