onous code with fewer surprises.</li></ul>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">void scheduleMicrotask(void callback()) {
  _Zone currentZone = Zone.current;
  if (identical(_rootZone, currentZone)) {
    &#47;&#47; No need to bind the callback. We know that the root&#39;s scheduleMicrotask
    &#47;&#47; will be invoked in the root zone.
    _rootScheduleMicrotask(nul