inAngularZone function

  1. @experimental
bool inAngularZone(
  1. NgZone ngZone,
  2. Zone zone
)

For a zone, returns whether it is within AngularDart ngZone.

INTERNAL ONLY: This is an experimental API subject to change.

Implementation

@experimental
bool inAngularZone(NgZone ngZone, Zone zone) {
  return identical(zone[ngZone._thisZoneKey], true);
}