ModalGeometry extension

An eval can come back as prose (Instance of…, a Sentinel, an error text) instead of the JSON blob; surface that as a typed failure, never a crash. Dart prints unlaid-out geometry as NaN, which is not JSON: it becomes null so callers can name the condition. Measuring the modal on top of the app: what back needs to close a sheet or dialog.

on

Methods

barrierDismissible(Scene scene) → Future<bool?>

Available on CoordinateResolver, provided by the ModalGeometry extension

Whether the top modal barrier closes its route when tapped; null when there is no barrier or the app would not say.
boundsOf(Scene scene, SceneNode node) → Future<({double h, double vh, double vw, double w, double x, double y})?>

Available on CoordinateResolver, provided by the ModalGeometry extension

Global rect and view size of node (an inspector node needs no glintId), or null when it cannot be measured.